var wc=e=>{throw TypeError(e)};var fl=(e,t,n)=>t.has(e)||wc("Cannot "+n);var P=(e,t,n)=>(fl(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?wc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),H=(e,t,n,r)=>(fl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ne=(e,t,n)=>(fl(e,t,"access private method"),n);var ms=(e,t,n,r)=>({set _(o){H(e,t,o,n)},get _(){return P(e,t,r)}});function bg(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function bf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ef={exports:{}},_i={},Sf={exports:{}},K={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var os=Symbol.for("react.element"),Eg=Symbol.for("react.portal"),Sg=Symbol.for("react.fragment"),Cg=Symbol.for("react.strict_mode"),Ng=Symbol.for("react.profiler"),kg=Symbol.for("react.provider"),Pg=Symbol.for("react.context"),jg=Symbol.for("react.forward_ref"),Tg=Symbol.for("react.suspense"),Rg=Symbol.for("react.memo"),Ag=Symbol.for("react.lazy"),bc=Symbol.iterator;function Og(e){return e===null||typeof e!="object"?null:(e=bc&&e[bc]||e["@@iterator"],typeof e=="function"?e:null)}var Cf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nf=Object.assign,kf={};function qr(e,t,n){this.props=e,this.context=t,this.refs=kf,this.updater=n||Cf}qr.prototype.isReactComponent={};qr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pf(){}Pf.prototype=qr.prototype;function nu(e,t,n){this.props=e,this.context=t,this.refs=kf,this.updater=n||Cf}var ru=nu.prototype=new Pf;ru.constructor=nu;Nf(ru,qr.prototype);ru.isPureReactComponent=!0;var Ec=Array.isArray,jf=Object.prototype.hasOwnProperty,ou={current:null},Tf={key:!0,ref:!0,__self:!0,__source:!0};function Rf(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)jf.call(t,r)&&!Tf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,F=C[L];if(0>>1;Lo(We,D))Zo(ut,We)?(C[L]=ut,C[Z]=D,L=Z):(C[L]=We,C[le]=D,L=le);else if(Zo(ut,D))C[L]=ut,C[Z]=D,L=Z;else break e}}return R}function o(C,R){var D=C.sortIndex-R.sortIndex;return D!==0?D:C.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],u=[],f=1,p=null,d=3,y=!1,x=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(C){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=C)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function E(C){if(v=!1,g(C),!x)if(n(a)!==null)x=!0,U(S);else{var R=n(u);R!==null&&G(E,R.startTime-C)}}function S(C,R){x=!1,v&&(v=!1,m(j),j=-1),y=!0;var D=d;try{for(g(R),p=n(a);p!==null&&(!(p.expirationTime>R)||C&&!$());){var L=p.callback;if(typeof L=="function"){p.callback=null,d=p.priorityLevel;var F=L(p.expirationTime<=R);R=e.unstable_now(),typeof F=="function"?p.callback=F:p===n(a)&&r(a),g(R)}else r(a);p=n(a)}if(p!==null)var Y=!0;else{var le=n(u);le!==null&&G(E,le.startTime-R),Y=!1}return Y}finally{p=null,d=D,y=!1}}var N=!1,k=null,j=-1,z=5,O=-1;function $(){return!(e.unstable_now()-OC||125L?(C.sortIndex=D,t(u,C),n(a)===null&&C===n(u)&&(v?(m(j),j=-1):v=!0,G(E,D-L))):(C.sortIndex=F,t(a,C),x||y||(x=!0,U(S))),C},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(C){var R=d;return function(){var D=d;d=R;try{return C.apply(this,arguments)}finally{d=D}}}})(Lf);Mf.exports=Lf;var Hg=Mf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Wg=w,Je=Hg;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gl=Object.prototype.hasOwnProperty,Qg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Cc={},Nc={};function Gg(e){return Gl.call(Nc,e)?!0:Gl.call(Cc,e)?!1:Qg.test(e)?Nc[e]=!0:(Cc[e]=!0,!1)}function Kg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Yg(e,t,n,r){if(t===null||typeof t>"u"||Kg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ze(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ce[e]=new ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var iu=/[\-:]([a-z])/g;function lu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(iu,lu);Ce[t]=new ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(iu,lu);Ce[t]=new ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(iu,lu);Ce[t]=new ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new ze(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function au(e,t,n,r){var o=Ce.hasOwnProperty(t)?Ce[t]:null;(o!==null?o.type!==0:r||!(2l||o[i]!==s[l]){var a=` `+o[i].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{ml=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?go(e):""}function Xg(e){switch(e.tag){case 5:return go(e.type);case 16:return go("Lazy");case 13:return go("Suspense");case 19:return go("SuspenseList");case 0:case 2:case 15:return e=gl(e.type,!1),e;case 11:return e=gl(e.type.render,!1),e;case 1:return e=gl(e.type,!0),e;default:return""}}function ql(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case dr:return"Fragment";case cr:return"Portal";case Kl:return"Profiler";case uu:return"StrictMode";case Yl:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Df:return(e.displayName||"Context")+".Consumer";case If:return(e._context.displayName||"Context")+".Provider";case cu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case du:return t=e.displayName||null,t!==null?t:ql(e.type)||"Memo";case an:t=e._payload,e=e._init;try{return ql(e(t))}catch{}}return null}function qg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ql(t);case 8:return t===uu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zg(e){var t=$f(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ys(e){e._valueTracker||(e._valueTracker=Zg(e))}function Uf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$f(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ei(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zl(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Bf(e,t){t=t.checked,t!=null&&au(e,"checked",t,!1)}function Jl(e,t){Bf(e,t);var n=jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ea(e,t.type,n):t.hasOwnProperty("defaultValue")&&ea(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ea(e,t,n){(t!=="number"||ei(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vo=Array.isArray;function Er(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=xs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _o(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jg=["Webkit","ms","Moz","O"];Object.keys(wo).forEach(function(e){Jg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wo[t]=wo[e]})});function Qf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wo.hasOwnProperty(e)&&wo[e]?(""+t).trim():t+"px"}function Gf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Qf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var e0=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ra(e,t){if(t){if(e0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function oa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sa=null;function fu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ia=null,Sr=null,Cr=null;function Ac(e){if(e=ls(e)){if(typeof ia!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Di(t),ia(e.stateNode,e.type,t))}}function Kf(e){Sr?Cr?Cr.push(e):Cr=[e]:Sr=e}function Yf(){if(Sr){var e=Sr,t=Cr;if(Cr=Sr=null,Ac(e),t)for(e=0;e>>=0,e===0?32:31-(d0(e)/f0|0)|0}var ws=64,bs=4194304;function yo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function oi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=yo(l):(s&=i,s!==0&&(r=yo(s)))}else i=n&~o,i!==0?r=yo(i):s!==0&&(r=yo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ss(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gt(t),e[t]=n}function g0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Eo),$c=" ",Uc=!1;function mp(e,t){switch(e){case"keyup":return H0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fr=!1;function Q0(e,t){switch(e){case"compositionend":return gp(t);case"keypress":return t.which!==32?null:(Uc=!0,$c);case"textInput":return e=t.data,e===$c&&Uc?null:e;default:return null}}function G0(e,t){if(fr)return e==="compositionend"||!wu&&mp(e,t)?(e=pp(),Us=vu=vn=null,fr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wc(n)}}function wp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bp(){for(var e=window,t=ei();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ei(e.document)}return t}function bu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function nv(e){var t=bp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wp(n.ownerDocument.documentElement,n)){if(r!==null&&bu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Qc(n,s);var i=Qc(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,pr=null,fa=null,Co=null,pa=!1;function Gc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pa||pr==null||pr!==ei(r)||(r=pr,"selectionStart"in r&&bu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Co&&Fo(Co,r)||(Co=r,r=li(fa,"onSelect"),0gr||(e.current=xa[gr],xa[gr]=null,gr--)}function te(e,t){gr++,xa[gr]=e.current,e.current=t}var Tn={},Re=zn(Tn),$e=zn(!1),Xn=Tn;function Ur(e,t){var n=e.type.contextTypes;if(!n)return Tn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ue(e){return e=e.childContextTypes,e!=null}function ui(){se($e),se(Re)}function ed(e,t,n){if(Re.current!==Tn)throw Error(T(168));te(Re,t),te($e,n)}function Rp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(T(108,qg(e)||"Unknown",o));return ce({},n,r)}function ci(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tn,Xn=Re.current,te(Re,e),te($e,$e.current),!0}function td(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=Rp(e,t,Xn),r.__reactInternalMemoizedMergedChildContext=e,se($e),se(Re),te(Re,e)):se($e),te($e,n)}var Dt=null,Fi=!1,Rl=!1;function Ap(e){Dt===null?Dt=[e]:Dt.push(e)}function hv(e){Fi=!0,Ap(e)}function In(){if(!Rl&&Dt!==null){Rl=!0;var e=0,t=J;try{var n=Dt;for(J=1;e>=i,o-=i,Ft=1<<32-gt(t)+o|n<j?(z=k,k=null):z=k.sibling;var O=d(m,k,g[j],E);if(O===null){k===null&&(k=z);break}e&&k&&O.alternate===null&&t(m,k),h=s(O,h,j),N===null?S=O:N.sibling=O,N=O,k=z}if(j===g.length)return n(m,k),ie&&Fn(m,j),S;if(k===null){for(;jj?(z=k,k=null):z=k.sibling;var $=d(m,k,O.value,E);if($===null){k===null&&(k=z);break}e&&k&&$.alternate===null&&t(m,k),h=s($,h,j),N===null?S=$:N.sibling=$,N=$,k=z}if(O.done)return n(m,k),ie&&Fn(m,j),S;if(k===null){for(;!O.done;j++,O=g.next())O=p(m,O.value,E),O!==null&&(h=s(O,h,j),N===null?S=O:N.sibling=O,N=O);return ie&&Fn(m,j),S}for(k=r(m,k);!O.done;j++,O=g.next())O=y(k,m,j,O.value,E),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?j:O.key),h=s(O,h,j),N===null?S=O:N.sibling=O,N=O);return e&&k.forEach(function(I){return t(m,I)}),ie&&Fn(m,j),S}function b(m,h,g,E){if(typeof g=="object"&&g!==null&&g.type===dr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case vs:e:{for(var S=g.key,N=h;N!==null;){if(N.key===S){if(S=g.type,S===dr){if(N.tag===7){n(m,N.sibling),h=o(N,g.props.children),h.return=m,m=h;break e}}else if(N.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===an&&od(S)===N.type){n(m,N.sibling),h=o(N,g.props),h.ref=uo(m,N,g),h.return=m,m=h;break e}n(m,N);break}else t(m,N);N=N.sibling}g.type===dr?(h=Yn(g.props.children,m.mode,E,g.key),h.return=m,m=h):(E=Ys(g.type,g.key,g.props,null,m.mode,E),E.ref=uo(m,h,g),E.return=m,m=E)}return i(m);case cr:e:{for(N=g.key;h!==null;){if(h.key===N)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=o(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Dl(g,m.mode,E),h.return=m,m=h}return i(m);case an:return N=g._init,b(m,h,N(g._payload),E)}if(vo(g))return x(m,h,g,E);if(oo(g))return v(m,h,g,E);js(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,g),h.return=m,m=h):(n(m,h),h=Il(g,m.mode,E),h.return=m,m=h),i(m)):n(m,h)}return b}var Vr=Lp(!0),zp=Lp(!1),pi=zn(null),hi=null,xr=null,Nu=null;function ku(){Nu=xr=hi=null}function Pu(e){var t=pi.current;se(pi),e._currentValue=t}function Ea(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function kr(e,t){hi=e,Nu=xr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fe=!0),e.firstContext=null)}function lt(e){var t=e._currentValue;if(Nu!==e)if(e={context:e,memoizedValue:t,next:null},xr===null){if(hi===null)throw Error(T(308));xr=e,hi.dependencies={lanes:0,firstContext:e}}else xr=xr.next=e;return t}var Bn=null;function ju(e){Bn===null?Bn=[e]:Bn.push(e)}function Ip(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ju(t)):(n.next=o.next,o.next=n),t.interleaved=n,Gt(e,r)}function Gt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var un=!1;function Tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Gt(e,n)}return o=r.interleaved,o===null?(t.next=t,ju(r)):(t.next=o.next,o.next=t),r.interleaved=t,Gt(e,n)}function Vs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hu(e,n)}}function sd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function mi(e,t,n,r){var o=e.updateQueue;un=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,i===null?s=u:i.next=u,i=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=a))}if(s!==null){var p=o.baseState;i=0,f=u=a=null,l=s;do{var d=l.lane,y=l.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,v=l;switch(d=t,y=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){p=x.call(y,p,d);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,d=typeof x=="function"?x.call(y,p,d):x,d==null)break e;p=ce({},p,d);break e;case 2:un=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[l]:d.push(l))}else y={eventTime:y,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=y,a=p):f=f.next=y,i|=d;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;d=l,l=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Jn|=i,e.lanes=i,e.memoizedState=p}}function id(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ol.transition;Ol.transition={};try{e(!1),t()}finally{J=n,Ol.transition=r}}function th(){return at().memoizedState}function yv(e,t,n){var r=kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nh(e))rh(t,n);else if(n=Ip(e,t,n,r),n!==null){var o=Me();vt(n,e,r,o),oh(n,t,r)}}function xv(e,t,n){var r=kn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nh(e))rh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,yt(l,i)){var a=t.interleaved;a===null?(o.next=o,ju(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Ip(e,t,o,r),n!==null&&(o=Me(),vt(n,e,r,o),oh(n,t,r))}}function nh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function rh(e,t){No=vi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hu(e,n)}}var yi={readContext:lt,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},wv={readContext:lt,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:ad,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ws(4194308,4,Xp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ws(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ws(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=yv.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:ld,useDebugValue:Iu,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=ld(!1),t=e[0];return e=vv.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=Nt();if(ie){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),we===null)throw Error(T(349));Zn&30||Bp(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,ad(Hp.bind(null,r,s,e),[e]),r.flags|=2048,Go(9,Vp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Nt(),t=we.identifierPrefix;if(ie){var n=$t,r=Ft;n=(r&~(1<<32-gt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Tt]=t,e[Bo]=r,hh(e,t,!1,!1),t.stateNode=e;e:{switch(i=oa(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oQr&&(t.flags|=128,r=!0,co(s,!1),t.lanes=4194304)}else{if(!r)if(e=gi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),co(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!ie)return Pe(t),null}else 2*pe()-s.renderingStartTime>Qr&&n!==1073741824&&(t.flags|=128,r=!0,co(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=pe(),t.sibling=null,n=ae.current,te(ae,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return Vu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function jv(e,t){switch(Su(t),t.tag){case 1:return Ue(t.type)&&ui(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hr(),se($e),se(Re),Ou(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Au(t),null;case 13:if(se(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ae),null;case 4:return Hr(),null;case 10:return Pu(t.type._context),null;case 22:case 23:return Vu(),null;case 24:return null;default:return null}}var Rs=!1,Te=!1,Tv=typeof WeakSet=="function"?WeakSet:Set,M=null;function wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Aa(e,t,n){try{n()}catch(r){fe(e,t,r)}}var xd=!1;function Rv(e,t){if(ha=si,e=bp(),bu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,l=-1,a=-1,u=0,f=0,p=e,d=null;t:for(;;){for(var y;p!==n||o!==0&&p.nodeType!==3||(l=i+o),p!==s||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(y=p.firstChild)!==null;)d=p,p=y;for(;;){if(p===e)break t;if(d===n&&++u===o&&(l=i),d===s&&++f===r&&(a=i),(y=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ma={focusedElem:e,selectionRange:n},si=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,b=x.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:dt(t.type,v),b);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(E){fe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return x=xd,xd=!1,x}function ko(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Aa(t,n,s)}o=o.next}while(o!==r)}}function Bi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Oa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vh(e){var t=e.alternate;t!==null&&(e.alternate=null,vh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tt],delete t[Bo],delete t[ya],delete t[fv],delete t[pv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function yh(e){return e.tag===5||e.tag===3||e.tag===4}function wd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _a(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ai));else if(r!==4&&(e=e.child,e!==null))for(_a(e,t,n),e=e.sibling;e!==null;)_a(e,t,n),e=e.sibling}function Ma(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ma(e,t,n),e=e.sibling;e!==null;)Ma(e,t,n),e=e.sibling}var Ee=null,ht=!1;function rn(e,t,n){for(n=n.child;n!==null;)xh(e,t,n),n=n.sibling}function xh(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Mi,n)}catch{}switch(n.tag){case 5:Te||wr(n,t);case 6:var r=Ee,o=ht;Ee=null,rn(e,t,n),Ee=r,ht=o,Ee!==null&&(ht?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(ht?(e=Ee,n=n.stateNode,e.nodeType===8?Tl(e.parentNode,n):e.nodeType===1&&Tl(e,n),Io(e)):Tl(Ee,n.stateNode));break;case 4:r=Ee,o=ht,Ee=n.stateNode.containerInfo,ht=!0,rn(e,t,n),Ee=r,ht=o;break;case 0:case 11:case 14:case 15:if(!Te&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Aa(n,t,i),o=o.next}while(o!==r)}rn(e,t,n);break;case 1:if(!Te&&(wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}rn(e,t,n);break;case 21:rn(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,rn(e,t,n),Te=r):rn(e,t,n);break;default:rn(e,t,n)}}function bd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tv),t.forEach(function(r){var o=Fv.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ov(r/1960))-r,10e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,bi=0,X&6)throw Error(T(331));var o=X;for(X|=4,M=e.current;M!==null;){var s=M,i=s.child;if(M.flags&16){var l=s.deletions;if(l!==null){for(var a=0;ape()-Uu?Kn(e,0):$u|=n),Be(e,t)}function Ph(e,t){t===0&&(e.mode&1?(t=bs,bs<<=1,!(bs&130023424)&&(bs=4194304)):t=1);var n=Me();e=Gt(e,t),e!==null&&(ss(e,t,n),Be(e,n))}function Dv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ph(e,n)}function Fv(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),Ph(e,n)}var jh;jh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$e.current)Fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fe=!1,kv(e,t,n);Fe=!!(e.flags&131072)}else Fe=!1,ie&&t.flags&1048576&&Op(t,fi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qs(e,t),e=t.pendingProps;var o=Ur(t,Re.current);kr(t,n),o=Mu(null,t,r,e,o,n);var s=Lu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(r)?(s=!0,ci(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Tu(t),o.updater=Ui,t.stateNode=o,o._reactInternals=t,Ca(t,r,e,n),t=Pa(null,t,r,!0,s,n)):(t.tag=0,ie&&s&&Eu(t),Oe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Uv(r),e=dt(r,e),o){case 0:t=ka(null,t,r,e,n);break e;case 1:t=gd(null,t,r,e,n);break e;case 11:t=hd(null,t,r,e,n);break e;case 14:t=md(null,t,r,dt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),ka(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),gd(e,t,r,o,n);case 3:e:{if(dh(t),e===null)throw Error(T(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Dp(e,t),mi(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Wr(Error(T(423)),t),t=vd(e,t,r,n,o);break e}else if(r!==o){o=Wr(Error(T(424)),t),t=vd(e,t,r,n,o);break e}else for(Xe=Sn(t.stateNode.containerInfo.firstChild),qe=t,ie=!0,mt=null,n=zp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Br(),r===o){t=Kt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return Fp(t),e===null&&ba(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,ga(r,o)?i=null:s!==null&&ga(r,s)&&(t.flags|=32),ch(e,t),Oe(e,t,i,n),t.child;case 6:return e===null&&ba(t),null;case 13:return fh(e,t,n);case 4:return Ru(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),hd(e,t,r,o,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,te(pi,r._currentValue),r._currentValue=i,s!==null)if(yt(s.value,i)){if(s.children===o.children&&!$e.current){t=Kt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=Ut(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ea(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(T(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ea(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Oe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,kr(t,n),o=lt(o),r=r(o),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,o=dt(r,t.pendingProps),o=dt(r.type,o),md(e,t,r,o,n);case 15:return ah(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),Qs(e,t),t.tag=1,Ue(r)?(e=!0,ci(t)):e=!1,kr(t,n),sh(t,r,o),Ca(t,r,o,n),Pa(null,t,r,!0,e,n);case 19:return ph(e,t,n);case 22:return uh(e,t,n)}throw Error(T(156,t.tag))};function Th(e,t){return np(e,t)}function $v(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,n,r){return new $v(e,t,n,r)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Uv(e){if(typeof e=="function")return Wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cu)return 11;if(e===du)return 14}return 2}function Pn(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ys(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Wu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case dr:return Yn(n.children,o,s,t);case uu:i=8,o|=8;break;case Kl:return e=st(12,n,t,o|2),e.elementType=Kl,e.lanes=s,e;case Yl:return e=st(13,n,t,o),e.elementType=Yl,e.lanes=s,e;case Xl:return e=st(19,n,t,o),e.elementType=Xl,e.lanes=s,e;case Ff:return Hi(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case If:i=10;break e;case Df:i=9;break e;case cu:i=11;break e;case du:i=14;break e;case an:i=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=st(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Yn(e,t,n,r){return e=st(7,e,r,t),e.lanes=n,e}function Hi(e,t,n,r){return e=st(22,e,r,t),e.elementType=Ff,e.lanes=n,e.stateNode={isHidden:!1},e}function Il(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function Dl(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bv(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yl(0),this.expirationTimes=yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Qu(e,t,n,r,o,s,i,l,a){return e=new Bv(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=st(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tu(s),e}function Vv(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_h)}catch(e){console.error(e)}}_h(),_f.exports=et;var us=_f.exports;const Mh=bf(us);var Lh,Td=us;Lh=Td.createRoot,Td.hydrateRoot;const Kv=1,Yv=1e6;let Fl=0;function Xv(){return Fl=(Fl+1)%Number.MAX_SAFE_INTEGER,Fl.toString()}const $l=new Map,Rd=e=>{if($l.has(e))return;const t=setTimeout(()=>{$l.delete(e),To({type:"REMOVE_TOAST",toastId:e})},Yv);$l.set(e,t)},qv=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Kv)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Rd(n):e.toasts.forEach(r=>{Rd(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Xs=[];let qs={toasts:[]};function To(e){qs=qv(qs,e),Xs.forEach(t=>{t(qs)})}function Zv({...e}){const t=Xv(),n=o=>To({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>To({type:"DISMISS_TOAST",toastId:t});return To({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Jv(){const[e,t]=w.useState(qs);return w.useEffect(()=>(Xs.push(t),()=>{const n=Xs.indexOf(t);n>-1&&Xs.splice(n,1)}),[e]),{...e,toast:Zv,dismiss:n=>To({type:"DISMISS_TOAST",toastId:n})}}function ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ey(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function zh(...e){return t=>e.forEach(n=>ey(n,t))}function xt(...e){return w.useCallback(zh(...e),e)}function ty(e,t=[]){let n=[];function r(s,i){const l=w.createContext(i),a=n.length;n=[...n,i];function u(p){const{scope:d,children:y,...x}=p,v=(d==null?void 0:d[e][a])||l,b=w.useMemo(()=>x,Object.values(x));return c.jsx(v.Provider,{value:b,children:y})}function f(p,d){const y=(d==null?void 0:d[e][a])||l,x=w.useContext(y);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,f]}const o=()=>{const s=n.map(i=>w.createContext(i));return function(l){const a=(l==null?void 0:l[e])||s;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,ny(o,...t)]}function ny(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const p=a(s)[`__scope${u}`];return{...l,...p}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Yo=w.forwardRef((e,t)=>{const{children:n,...r}=e,o=w.Children.toArray(n),s=o.find(ry);if(s){const i=s.props.children,l=o.map(a=>a===s?w.Children.count(i)>1?w.Children.only(null):w.isValidElement(i)?i.props.children:null:a);return c.jsx(Fa,{...r,ref:t,children:w.isValidElement(i)?w.cloneElement(i,void 0,l):null})}return c.jsx(Fa,{...r,ref:t,children:n})});Yo.displayName="Slot";var Fa=w.forwardRef((e,t)=>{const{children:n,...r}=e;if(w.isValidElement(n)){const o=sy(n);return w.cloneElement(n,{...oy(r,n.props),ref:t?zh(t,o):o})}return w.Children.count(n)>1?w.Children.only(null):null});Fa.displayName="SlotClone";var Ih=({children:e})=>c.jsx(c.Fragment,{children:e});function ry(e){return w.isValidElement(e)&&e.type===Ih}function oy(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{s(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function sy(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function iy(e){const t=e+"CollectionProvider",[n,r]=ty(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=y=>{const{scope:x,children:v}=y,b=A.useRef(null),m=A.useRef(new Map).current;return c.jsx(o,{scope:x,itemMap:m,collectionRef:b,children:v})};i.displayName=t;const l=e+"CollectionSlot",a=A.forwardRef((y,x)=>{const{scope:v,children:b}=y,m=s(l,v),h=xt(x,m.collectionRef);return c.jsx(Yo,{ref:h,children:b})});a.displayName=l;const u=e+"CollectionItemSlot",f="data-radix-collection-item",p=A.forwardRef((y,x)=>{const{scope:v,children:b,...m}=y,h=A.useRef(null),g=xt(x,h),E=s(u,v);return A.useEffect(()=>(E.itemMap.set(h,{ref:h,...m}),()=>void E.itemMap.delete(h))),c.jsx(Yo,{[f]:"",ref:g,children:b})});p.displayName=u;function d(y){const x=s(e+"CollectionConsumer",y);return A.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const m=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((E,S)=>m.indexOf(E.ref.current)-m.indexOf(S.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:a,ItemSlot:p},d,r]}function Dh(e,t=[]){let n=[];function r(s,i){const l=w.createContext(i),a=n.length;n=[...n,i];const u=p=>{var m;const{scope:d,children:y,...x}=p,v=((m=d==null?void 0:d[e])==null?void 0:m[a])||l,b=w.useMemo(()=>x,Object.values(x));return c.jsx(v.Provider,{value:b,children:y})};u.displayName=s+"Provider";function f(p,d){var v;const y=((v=d==null?void 0:d[e])==null?void 0:v[a])||l,x=w.useContext(y);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>w.createContext(i));return function(l){const a=(l==null?void 0:l[e])||s;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,ly(o,...t)]}function ly(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const p=a(s)[`__scope${u}`];return{...l,...p}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var ay=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],He=ay.reduce((e,t)=>{const n=w.forwardRef((r,o)=>{const{asChild:s,...i}=r,l=s?Yo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Fh(e,t){e&&us.flushSync(()=>e.dispatchEvent(t))}function Ot(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function uy(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e);w.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var cy="DismissableLayer",$a="dismissableLayer.update",dy="dismissableLayer.pointerDownOutside",fy="dismissableLayer.focusOutside",Ad,$h=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xu=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...a}=e,u=w.useContext($h),[f,p]=w.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=w.useState({}),x=xt(t,k=>p(k)),v=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(b),h=f?v.indexOf(f):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,E=h>=m,S=hy(k=>{const j=k.target,z=[...u.branches].some(O=>O.contains(j));!E||z||(o==null||o(k),i==null||i(k),k.defaultPrevented||l==null||l())},d),N=my(k=>{const j=k.target;[...u.branches].some(O=>O.contains(j))||(s==null||s(k),i==null||i(k),k.defaultPrevented||l==null||l())},d);return uy(k=>{h===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},d),w.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ad=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Od(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Ad)}},[f,d,n,u]),w.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Od())},[f,u]),w.useEffect(()=>{const k=()=>y({});return document.addEventListener($a,k),()=>document.removeEventListener($a,k)},[]),c.jsx(He.div,{...a,ref:x,style:{pointerEvents:g?E?"auto":"none":void 0,...e.style},onFocusCapture:ve(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ve(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ve(e.onPointerDownCapture,S.onPointerDownCapture)})});Xu.displayName=cy;var py="DismissableLayerBranch",Uh=w.forwardRef((e,t)=>{const n=w.useContext($h),r=w.useRef(null),o=xt(t,r);return w.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(He.div,{...e,ref:o})});Uh.displayName=py;function hy(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e),r=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let a=function(){Bh(dy,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function my(e,t=globalThis==null?void 0:globalThis.document){const n=Ot(e),r=w.useRef(!1);return w.useEffect(()=>{const o=s=>{s.target&&!r.current&&Bh(fy,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Od(){const e=new CustomEvent($a);document.dispatchEvent(e)}function Bh(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fh(o,s):o.dispatchEvent(s)}var gy=Xu,vy=Uh,tr=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},yy="Portal",Vh=w.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=w.useState(!1);tr(()=>s(!0),[]);const i=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?Mh.createPortal(c.jsx(He.div,{...r,ref:t}),i):null});Vh.displayName=yy;function xy(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var qu=e=>{const{present:t,children:n}=e,r=wy(t),o=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),s=xt(r.ref,by(o));return typeof n=="function"||r.isPresent?w.cloneElement(o,{ref:s}):null};qu.displayName="Presence";function wy(e){const[t,n]=w.useState(),r=w.useRef({}),o=w.useRef(e),s=w.useRef("none"),i=e?"mounted":"unmounted",[l,a]=xy(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=_s(r.current);s.current=l==="mounted"?u:"none"},[l]),tr(()=>{const u=r.current,f=o.current;if(f!==e){const d=s.current,y=_s(u);e?a("MOUNT"):y==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(f&&d!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),tr(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=y=>{const v=_s(r.current).includes(y.animationName);if(y.target===t&&v&&(a("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},d=y=>{y.target===t&&(s.current=_s(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function _s(e){return(e==null?void 0:e.animationName)||"none"}function by(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ey({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Sy({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:r,l=Ot(n),a=w.useCallback(u=>{if(s){const p=typeof u=="function"?u(e):u;p!==e&&l(p)}else o(u)},[s,e,o,l]);return[i,a]}function Sy({defaultProp:e,onChange:t}){const n=w.useState(e),[r]=n,o=w.useRef(r),s=Ot(t);return w.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var Cy="VisuallyHidden",Yi=w.forwardRef((e,t)=>c.jsx(He.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Yi.displayName=Cy;var Ny=Yi,Zu="ToastProvider",[Ju,ky,Py]=iy("Toast"),[Hh,i2]=Dh("Toast",[Py]),[jy,Xi]=Hh(Zu),Wh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[l,a]=w.useState(null),[u,f]=w.useState(0),p=w.useRef(!1),d=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Zu}\`. Expected non-empty \`string\`.`),c.jsx(Ju.Provider,{scope:t,children:c.jsx(jy,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:w.useCallback(()=>f(y=>y+1),[]),onToastRemove:w.useCallback(()=>f(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:d,children:i})})};Wh.displayName=Zu;var Qh="ToastViewport",Ty=["F8"],Ua="toast.viewportPause",Ba="toast.viewportResume",Gh=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Ty,label:o="Notifications ({hotkey})",...s}=e,i=Xi(Qh,n),l=ky(n),a=w.useRef(null),u=w.useRef(null),f=w.useRef(null),p=w.useRef(null),d=xt(t,p,i.onViewportChange),y=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=i.toastCount>0;w.useEffect(()=>{const b=m=>{var g;r.length!==0&&r.every(E=>m[E]||m.code===E)&&((g=p.current)==null||g.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),w.useEffect(()=>{const b=a.current,m=p.current;if(x&&b&&m){const h=()=>{if(!i.isClosePausedRef.current){const N=new CustomEvent(Ua);m.dispatchEvent(N),i.isClosePausedRef.current=!0}},g=()=>{if(i.isClosePausedRef.current){const N=new CustomEvent(Ba);m.dispatchEvent(N),i.isClosePausedRef.current=!1}},E=N=>{!b.contains(N.relatedTarget)&&g()},S=()=>{b.contains(document.activeElement)||g()};return b.addEventListener("focusin",h),b.addEventListener("focusout",E),b.addEventListener("pointermove",h),b.addEventListener("pointerleave",S),window.addEventListener("blur",h),window.addEventListener("focus",g),()=>{b.removeEventListener("focusin",h),b.removeEventListener("focusout",E),b.removeEventListener("pointermove",h),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",h),window.removeEventListener("focus",g)}}},[x,i.isClosePausedRef]);const v=w.useCallback(({tabbingDirection:b})=>{const h=l().map(g=>{const E=g.ref.current,S=[E,...By(E)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?h.reverse():h).flat()},[l]);return w.useEffect(()=>{const b=p.current;if(b){const m=h=>{var S,N,k;const g=h.altKey||h.ctrlKey||h.metaKey;if(h.key==="Tab"&&!g){const j=document.activeElement,z=h.shiftKey;if(h.target===b&&z){(S=u.current)==null||S.focus();return}const I=v({tabbingDirection:z?"backwards":"forwards"}),W=I.findIndex(_=>_===j);Ul(I.slice(W+1))?h.preventDefault():z?(N=u.current)==null||N.focus():(k=f.current)==null||k.focus()}};return b.addEventListener("keydown",m),()=>b.removeEventListener("keydown",m)}},[l,v]),c.jsxs(vy,{ref:a,role:"region","aria-label":o.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&c.jsx(Va,{ref:u,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"forwards"});Ul(b)}}),c.jsx(Ju.Slot,{scope:n,children:c.jsx(He.ol,{tabIndex:-1,...s,ref:d})}),x&&c.jsx(Va,{ref:f,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"backwards"});Ul(b)}})]})});Gh.displayName=Qh;var Kh="ToastFocusProxy",Va=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=Xi(Kh,n);return c.jsx(Yi,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const l=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(l))&&r()}})});Va.displayName=Kh;var qi="Toast",Ry="toast.swipeStart",Ay="toast.swipeMove",Oy="toast.swipeCancel",_y="toast.swipeEnd",Yh=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[l=!0,a]=Ey({prop:r,defaultProp:o,onChange:s});return c.jsx(qu,{present:n||l,children:c.jsx(zy,{open:l,...i,ref:t,onClose:()=>a(!1),onPause:Ot(e.onPause),onResume:Ot(e.onResume),onSwipeStart:ve(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ve(e.onSwipeMove,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ve(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ve(e.onSwipeEnd,u=>{const{x:f,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),a(!1)})})})});Yh.displayName=qi;var[My,Ly]=Hh(qi,{onClose(){}}),zy=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:d,onSwipeEnd:y,...x}=e,v=Xi(qi,n),[b,m]=w.useState(null),h=xt(t,_=>m(_)),g=w.useRef(null),E=w.useRef(null),S=o||v.duration,N=w.useRef(0),k=w.useRef(S),j=w.useRef(0),{onToastAdd:z,onToastRemove:O}=v,$=Ot(()=>{var Q;(b==null?void 0:b.contains(document.activeElement))&&((Q=v.viewport)==null||Q.focus()),i()}),I=w.useCallback(_=>{!_||_===1/0||(window.clearTimeout(j.current),N.current=new Date().getTime(),j.current=window.setTimeout($,_))},[$]);w.useEffect(()=>{const _=v.viewport;if(_){const Q=()=>{I(k.current),u==null||u()},U=()=>{const G=new Date().getTime()-N.current;k.current=k.current-G,window.clearTimeout(j.current),a==null||a()};return _.addEventListener(Ua,U),_.addEventListener(Ba,Q),()=>{_.removeEventListener(Ua,U),_.removeEventListener(Ba,Q)}}},[v.viewport,S,a,u,I]),w.useEffect(()=>{s&&!v.isClosePausedRef.current&&I(S)},[s,S,v.isClosePausedRef,I]),w.useEffect(()=>(z(),()=>O()),[z,O]);const W=w.useMemo(()=>b?nm(b):null,[b]);return v.viewport?c.jsxs(c.Fragment,{children:[W&&c.jsx(Iy,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:W}),c.jsx(My,{scope:n,onClose:$,children:us.createPortal(c.jsx(Ju.ItemSlot,{scope:n,children:c.jsx(gy,{asChild:!0,onEscapeKeyDown:ve(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||$(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(He.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...x,ref:h,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ve(e.onKeyDown,_=>{_.key==="Escape"&&(l==null||l(_.nativeEvent),_.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ve(e.onPointerDown,_=>{_.button===0&&(g.current={x:_.clientX,y:_.clientY})}),onPointerMove:ve(e.onPointerMove,_=>{if(!g.current)return;const Q=_.clientX-g.current.x,U=_.clientY-g.current.y,G=!!E.current,C=["left","right"].includes(v.swipeDirection),R=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,D=C?R(0,Q):0,L=C?0:R(0,U),F=_.pointerType==="touch"?10:2,Y={x:D,y:L},le={originalEvent:_,delta:Y};G?(E.current=Y,Ms(Ay,p,le,{discrete:!1})):_d(Y,v.swipeDirection,F)?(E.current=Y,Ms(Ry,f,le,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(Q)>F||Math.abs(U)>F)&&(g.current=null)}),onPointerUp:ve(e.onPointerUp,_=>{const Q=E.current,U=_.target;if(U.hasPointerCapture(_.pointerId)&&U.releasePointerCapture(_.pointerId),E.current=null,g.current=null,Q){const G=_.currentTarget,C={originalEvent:_,delta:Q};_d(Q,v.swipeDirection,v.swipeThreshold)?Ms(_y,y,C,{discrete:!0}):Ms(Oy,d,C,{discrete:!0}),G.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),Iy=e=>{const{__scopeToast:t,children:n,...r}=e,o=Xi(qi,t),[s,i]=w.useState(!1),[l,a]=w.useState(!1);return $y(()=>i(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:c.jsx(Vh,{asChild:!0,children:c.jsx(Yi,{...r,children:s&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},Dy="ToastTitle",Xh=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(He.div,{...r,ref:t})});Xh.displayName=Dy;var Fy="ToastDescription",qh=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(He.div,{...r,ref:t})});qh.displayName=Fy;var Zh="ToastAction",Jh=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(tm,{altText:n,asChild:!0,children:c.jsx(ec,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Zh}\`. Expected non-empty \`string\`.`),null)});Jh.displayName=Zh;var em="ToastClose",ec=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Ly(em,n);return c.jsx(tm,{asChild:!0,children:c.jsx(He.button,{type:"button",...r,ref:t,onClick:ve(e.onClick,o.onClose)})})});ec.displayName=em;var tm=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(He.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function nm(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Uy(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...nm(r))}}),t}function Ms(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fh(o,s):o.dispatchEvent(s)}var _d=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function $y(e=()=>{}){const t=Ot(e);tr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Uy(e){return e.nodeType===e.ELEMENT_NODE}function By(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ul(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Vy=Wh,rm=Gh,om=Yh,sm=Xh,im=qh,lm=Jh,am=ec;function um(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Ld=cm,tc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ld(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],p=s==null?void 0:s[u];if(f===null)return null;const d=Md(f)||Md(p);return o[u][d]}),l=n&&Object.entries(n).reduce((u,f)=>{let[p,d]=f;return d===void 0||(u[p]=d),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:d,...y}=f;return Object.entries(y).every(x=>{let[v,b]=x;return Array.isArray(b)?b.includes({...s,...l}[v]):{...s,...l}[v]===b})?[...u,p,d]:u},[]);return Ld(e,i,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hy=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Wy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qy=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...l},a)=>w.createElement("svg",{ref:a,...Wy,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:dm("lucide",o),...l},[...i.map(([u,f])=>w.createElement(u,f)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const me=(e,t)=>{const n=w.forwardRef(({className:r,...o},s)=>w.createElement(Qy,{ref:s,iconNode:t,className:dm(`lucide-${Hy(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zs=me("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zd=me("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gr=me("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bl=me("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gy=me("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ci=me("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ky=me("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yy=me("Ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xy=me("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fm=me("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ni=me("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const po=me("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xo=me("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qy=me("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kr=me("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nc=me("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Id=me("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pm=me("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zy=me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qo=me("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),rc="-",Jy=e=>{const t=tx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const l=i.split(rc);return l[0]===""&&l.length!==1&&l.shift(),hm(l,t)||ex(i)},getConflictingClassGroupIds:(i,l)=>{const a=n[i]||[];return l&&r[i]?[...a,...r[i]]:a}}},hm=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?hm(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(rc);return(i=t.validators.find(({validator:l})=>l(s)))==null?void 0:i.classGroupId},Dd=/^\[(.+)\]$/,ex=e=>{if(Dd.test(e)){const t=Dd.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},tx=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return rx(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ha(i,r,s,t)}),r},Ha=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Fd(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(nx(o)){Ha(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ha(i,Fd(t,s),n,r)})})},Fd=(e,t)=>{let n=e;return t.split(rc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},nx=e=>e.isThemeGetter,rx=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[t+i,l])):s);return[n,o]}):e,ox=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},mm="!",sx=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=l=>{const a=[];let u=0,f=0,p;for(let b=0;bf?p-f:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:i}):i},ix=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},lx=e=>({cache:ox(e.cacheSize),parseClassName:sx(e),...Jy(e)}),ax=/\s+/,ux=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(ax);let l="";for(let a=i.length-1;a>=0;a-=1){const u=i[a],{modifiers:f,hasImportantModifier:p,baseClassName:d,maybePostfixModifierPosition:y}=n(u);let x=!!y,v=r(x?d.substring(0,y):d);if(!v){if(!x){l=u+(l.length>0?" "+l:l);continue}if(v=r(d),!v){l=u+(l.length>0?" "+l:l);continue}x=!1}const b=ix(f).join(":"),m=p?b+mm:b,h=m+v;if(s.includes(h))continue;s.push(h);const g=o(v,x);for(let E=0;E0?" "+l:l)}return l};function cx(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(f),e());return n=lx(u),r=n.cache.get,o=n.cache.set,s=l,l(a)}function l(a){const u=r(a);if(u)return u;const f=ux(a,n);return o(a,f),f}return function(){return s(cx.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vm=/^\[(?:([a-z-]+):)?(.+)\]$/i,fx=/^\d+\/\d+$/,px=new Set(["px","full","screen"]),hx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Lt=e=>jr(e)||px.has(e)||fx.test(e),on=e=>eo(e,"length",kx),jr=e=>!!e&&!Number.isNaN(Number(e)),Vl=e=>eo(e,"number",jr),ho=e=>!!e&&Number.isInteger(Number(e)),xx=e=>e.endsWith("%")&&jr(e.slice(0,-1)),V=e=>vm.test(e),sn=e=>hx.test(e),wx=new Set(["length","size","percentage"]),bx=e=>eo(e,wx,ym),Ex=e=>eo(e,"position",ym),Sx=new Set(["image","url"]),Cx=e=>eo(e,Sx,jx),Nx=e=>eo(e,"",Px),mo=()=>!0,eo=(e,t,n)=>{const r=vm.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},kx=e=>mx.test(e)&&!gx.test(e),ym=()=>!1,Px=e=>vx.test(e),jx=e=>yx.test(e),Tx=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),s=re("borderRadius"),i=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),f=re("hueRotate"),p=re("invert"),d=re("gap"),y=re("gradientColorStops"),x=re("gradientColorStopPositions"),v=re("inset"),b=re("margin"),m=re("opacity"),h=re("padding"),g=re("saturate"),E=re("scale"),S=re("sepia"),N=re("skew"),k=re("space"),j=re("translate"),z=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",V,t],I=()=>[V,t],W=()=>["",Lt,on],_=()=>["auto",jr,V],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",V],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[jr,V];return{cacheSize:500,separator:":",theme:{colors:[mo],spacing:[Lt,on],blur:["none","",sn,V],brightness:L(),borderColor:[e],borderRadius:["none","","full",sn,V],borderSpacing:I(),borderWidth:W(),contrast:L(),grayscale:R(),hueRotate:L(),invert:R(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[xx,on],inset:$(),margin:$(),opacity:L(),padding:I(),saturate:L(),scale:L(),sepia:R(),skew:L(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",V]}],container:["container"],columns:[{columns:[sn]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),V]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ho,V]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",V]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",ho,V]}],"grid-cols":[{"grid-cols":[mo]}],"col-start-end":[{col:["auto",{span:["full",ho,V]},V]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[mo]}],"row-start-end":[{row:["auto",{span:[ho,V]},V]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",V]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",V]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",V,t]}],"min-w":[{"min-w":[V,t,"min","max","fit"]}],"max-w":[{"max-w":[V,t,"none","full","min","max","fit","prose",{screen:[sn]},sn]}],h:[{h:[V,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[V,t,"auto","min","max","fit"]}],"font-size":[{text:["base",sn,on]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vl]}],"font-family":[{font:[mo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",V]}],"line-clamp":[{"line-clamp":["none",jr,Vl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Lt,V]}],"list-image":[{"list-image":["none",V]}],"list-style-type":[{list:["none","disc","decimal",V]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Lt,on]}],"underline-offset":[{"underline-offset":["auto",Lt,V]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),Ex]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cx]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[Lt,V]}],"outline-w":[{outline:[Lt,on]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Lt,on]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",sn,Nx]}],"shadow-color":[{shadow:[mo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",sn,V]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[g]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",V]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",V]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",V]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[ho,V]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",V]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Lt,on,Vl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Rx=dx(Tx);function Ie(...e){return Rx(cm(e))}const Ax=Vy,xm=w.forwardRef(({className:e,...t},n)=>c.jsx(rm,{ref:n,className:Ie("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));xm.displayName=rm.displayName;const Ox=tc("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),wm=w.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(om,{ref:r,className:Ie(Ox({variant:t}),e),...n}));wm.displayName=om.displayName;const _x=w.forwardRef(({className:e,...t},n)=>c.jsx(lm,{ref:n,className:Ie("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));_x.displayName=lm.displayName;const bm=w.forwardRef(({className:e,...t},n)=>c.jsx(am,{ref:n,className:Ie("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(Zy,{className:"h-4 w-4"})}));bm.displayName=am.displayName;const Em=w.forwardRef(({className:e,...t},n)=>c.jsx(sm,{ref:n,className:Ie("text-sm font-semibold",e),...t}));Em.displayName=sm.displayName;const Sm=w.forwardRef(({className:e,...t},n)=>c.jsx(im,{ref:n,className:Ie("text-sm opacity-90",e),...t}));Sm.displayName=im.displayName;function Mx(){const{toasts:e}=Jv();return c.jsxs(Ax,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return c.jsxs(wm,{...s,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(Em,{children:n}),r&&c.jsx(Sm,{children:r})]}),o,c.jsx(bm,{})]},t)}),c.jsx(xm,{})]})}var $d=["light","dark"],Lx="(prefers-color-scheme: dark)",zx=w.createContext(void 0),Ix={setTheme:e=>{},themes:[]},Dx=()=>{var e;return(e=w.useContext(zx))!=null?e:Ix};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:l,nonce:a})=>{let u=s==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?$d.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(x,v=!1,b=!0)=>{let m=i?i[x]:x,h=v?x+"|| ''":`'${m}'`,g="";return o&&b&&!v&&$d.includes(x)&&(g+=`d.style.colorScheme = '${x}';`),n==="class"?v||m?g+=`c.add(${h})`:g+="null":m&&(g+=`d[s](n,${h})`),g},y=e?`!function(){${f}${d(e)}}()`:r?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Lx}',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${d(i?"x[e]":"e",!0)}}${u?"":"else{"+d(s,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${d(i?"x[e]":"e",!0)}}else{${d(s,!1,!1)};}${p}}catch(t){}}();`;return w.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:y}})});var Fx=e=>{switch(e){case"success":return Bx;case"info":return Hx;case"warning":return Vx;case"error":return Wx;default:return null}},$x=Array(12).fill(0),Ux=({visible:e})=>A.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},A.createElement("div",{className:"sonner-spinner"},$x.map((t,n)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Bx=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Vx=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Hx=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Wx=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Qx=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Wa=1,Gx=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Wa++,s=this.toasts.find(l=>l.id===o),i=e.dismissible===void 0?!0:e.dismissible;return s?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:i,title:n}):l):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(async s=>{if(Yx(s)&&!s.ok){o=!1;let i=typeof t.error=="function"?await t.error(`HTTP error! status: ${s.status}`):t.error,l=typeof t.description=="function"?await t.description(`HTTP error! status: ${s.status}`):t.description;this.create({id:n,type:"error",message:i,description:l})}else if(t.success!==void 0){o=!1;let i=typeof t.success=="function"?await t.success(s):t.success,l=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"success",message:i,description:l})}}).catch(async s=>{if(t.error!==void 0){o=!1;let i=typeof t.error=="function"?await t.error(s):t.error,l=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"error",message:i,description:l})}}).finally(()=>{var s;o&&(this.dismiss(n),n=void 0),(s=t.finally)==null||s.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Wa++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},Ge=new Gx,Kx=(e,t)=>{let n=(t==null?void 0:t.id)||Wa++;return Ge.addToast({title:e,...t,id:n}),n},Yx=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Xx=Kx,qx=()=>Ge.toasts;Object.assign(Xx,{success:Ge.success,info:Ge.info,warning:Ge.warning,error:Ge.error,custom:Ge.custom,message:Ge.message,promise:Ge.promise,dismiss:Ge.dismiss,loading:Ge.loading},{getHistory:qx});function Zx(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Zx(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Ls(e){return e.label!==void 0}var Jx=3,e1="32px",t1=4e3,n1=356,r1=14,o1=20,s1=200;function i1(...e){return e.filter(Boolean).join(" ")}var l1=e=>{var t,n,r,o,s,i,l,a,u,f;let{invert:p,toast:d,unstyled:y,interacting:x,setHeights:v,visibleToasts:b,heights:m,index:h,toasts:g,expanded:E,removeToast:S,defaultRichColors:N,closeButton:k,style:j,cancelButtonStyle:z,actionButtonStyle:O,className:$="",descriptionClassName:I="",duration:W,position:_,gap:Q,loadingIcon:U,expandByDefault:G,classNames:C,icons:R,closeButtonAriaLabel:D="Close toast",pauseWhenPageIsHidden:L,cn:F}=e,[Y,le]=A.useState(!1),[We,Z]=A.useState(!1),[ut,Zt]=A.useState(!1),[Jt,en]=A.useState(!1),[ds,sr]=A.useState(0),[Dn,ro]=A.useState(0),fs=A.useRef(null),tn=A.useRef(null),al=h===0,ul=h+1<=b,be=d.type,ir=d.dismissible!==!1,hg=d.className||"",mg=d.descriptionClassName||"",ps=A.useMemo(()=>m.findIndex(B=>B.toastId===d.id)||0,[m,d.id]),gg=A.useMemo(()=>{var B;return(B=d.closeButton)!=null?B:k},[d.closeButton,k]),mc=A.useMemo(()=>d.duration||W||t1,[d.duration,W]),cl=A.useRef(0),lr=A.useRef(0),gc=A.useRef(0),ar=A.useRef(null),[vc,vg]=_.split("-"),yc=A.useMemo(()=>m.reduce((B,ne,ee)=>ee>=ps?B:B+ne.height,0),[m,ps]),xc=Qx(),yg=d.invert||p,dl=be==="loading";lr.current=A.useMemo(()=>ps*Q+yc,[ps,yc]),A.useEffect(()=>{le(!0)},[]),A.useLayoutEffect(()=>{if(!Y)return;let B=tn.current,ne=B.style.height;B.style.height="auto";let ee=B.getBoundingClientRect().height;B.style.height=ne,ro(ee),v(Et=>Et.find(St=>St.toastId===d.id)?Et.map(St=>St.toastId===d.id?{...St,height:ee}:St):[{toastId:d.id,height:ee,position:d.position},...Et])},[Y,d.title,d.description,v,d.id]);let nn=A.useCallback(()=>{Z(!0),sr(lr.current),v(B=>B.filter(ne=>ne.toastId!==d.id)),setTimeout(()=>{S(d)},s1)},[d,S,v,lr]);A.useEffect(()=>{if(d.promise&&be==="loading"||d.duration===1/0||d.type==="loading")return;let B,ne=mc;return E||x||L&&xc?(()=>{if(gc.current{var ee;(ee=d.onAutoClose)==null||ee.call(d,d),nn()},ne)),()=>clearTimeout(B)},[E,x,G,d,mc,nn,d.promise,be,L,xc]),A.useEffect(()=>{let B=tn.current;if(B){let ne=B.getBoundingClientRect().height;return ro(ne),v(ee=>[{toastId:d.id,height:ne,position:d.position},...ee]),()=>v(ee=>ee.filter(Et=>Et.toastId!==d.id))}},[v,d.id]),A.useEffect(()=>{d.delete&&nn()},[nn,d.delete]);function xg(){return R!=null&&R.loading?A.createElement("div",{className:"sonner-loader","data-visible":be==="loading"},R.loading):U?A.createElement("div",{className:"sonner-loader","data-visible":be==="loading"},U):A.createElement(Ux,{visible:be==="loading"})}return A.createElement("li",{"aria-live":d.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:tn,className:F($,hg,C==null?void 0:C.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,C==null?void 0:C.default,C==null?void 0:C[be],(n=d==null?void 0:d.classNames)==null?void 0:n[be]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:N,"data-styled":!(d.jsx||d.unstyled||y),"data-mounted":Y,"data-promise":!!d.promise,"data-removed":We,"data-visible":ul,"data-y-position":vc,"data-x-position":vg,"data-index":h,"data-front":al,"data-swiping":ut,"data-dismissible":ir,"data-type":be,"data-invert":yg,"data-swipe-out":Jt,"data-expanded":!!(E||G&&Y),style:{"--index":h,"--toasts-before":h,"--z-index":g.length-h,"--offset":`${We?ds:lr.current}px`,"--initial-height":G?"auto":`${Dn}px`,...j,...d.style},onPointerDown:B=>{dl||!ir||(fs.current=new Date,sr(lr.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(Zt(!0),ar.current={x:B.clientX,y:B.clientY}))},onPointerUp:()=>{var B,ne,ee,Et;if(Jt||!ir)return;ar.current=null;let St=Number(((B=tn.current)==null?void 0:B.style.getPropertyValue("--swipe-amount").replace("px",""))||0),hs=new Date().getTime()-((ne=fs.current)==null?void 0:ne.getTime()),wg=Math.abs(St)/hs;if(Math.abs(St)>=o1||wg>.11){sr(lr.current),(ee=d.onDismiss)==null||ee.call(d,d),nn(),en(!0);return}(Et=tn.current)==null||Et.style.setProperty("--swipe-amount","0px"),Zt(!1)},onPointerMove:B=>{var ne;if(!ar.current||!ir)return;let ee=B.clientY-ar.current.y,Et=B.clientX-ar.current.x,St=(vc==="top"?Math.min:Math.max)(0,ee),hs=B.pointerType==="touch"?10:2;Math.abs(St)>hs?(ne=tn.current)==null||ne.style.setProperty("--swipe-amount",`${ee}px`):Math.abs(Et)>hs&&(ar.current=null)}},gg&&!d.jsx?A.createElement("button",{"aria-label":D,"data-disabled":dl,"data-close-button":!0,onClick:dl||!ir?()=>{}:()=>{var B;nn(),(B=d.onDismiss)==null||B.call(d,d)},className:F(C==null?void 0:C.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,d.jsx||A.isValidElement(d.title)?d.jsx||d.title:A.createElement(A.Fragment,null,be||d.icon||d.promise?A.createElement("div",{"data-icon":"",className:F(C==null?void 0:C.icon,(s=d==null?void 0:d.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||xg():null,d.type!=="loading"?d.icon||(R==null?void 0:R[be])||Fx(be):null):null,A.createElement("div",{"data-content":"",className:F(C==null?void 0:C.content,(i=d==null?void 0:d.classNames)==null?void 0:i.content)},A.createElement("div",{"data-title":"",className:F(C==null?void 0:C.title,(l=d==null?void 0:d.classNames)==null?void 0:l.title)},d.title),d.description?A.createElement("div",{"data-description":"",className:F(I,mg,C==null?void 0:C.description,(a=d==null?void 0:d.classNames)==null?void 0:a.description)},d.description):null),A.isValidElement(d.cancel)?d.cancel:d.cancel&&Ls(d.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||z,onClick:B=>{var ne,ee;Ls(d.cancel)&&ir&&((ee=(ne=d.cancel).onClick)==null||ee.call(ne,B),nn())},className:F(C==null?void 0:C.cancelButton,(u=d==null?void 0:d.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,A.isValidElement(d.action)?d.action:d.action&&Ls(d.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||O,onClick:B=>{var ne,ee;Ls(d.action)&&(B.defaultPrevented||((ee=(ne=d.action).onClick)==null||ee.call(ne,B),nn()))},className:F(C==null?void 0:C.actionButton,(f=d==null?void 0:d.classNames)==null?void 0:f.actionButton)},d.action.label):null))};function Ud(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var a1=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:s,className:i,offset:l,theme:a="light",richColors:u,duration:f,style:p,visibleToasts:d=Jx,toastOptions:y,dir:x=Ud(),gap:v=r1,loadingIcon:b,icons:m,containerAriaLabel:h="Notifications",pauseWhenPageIsHidden:g,cn:E=i1}=e,[S,N]=A.useState([]),k=A.useMemo(()=>Array.from(new Set([n].concat(S.filter(L=>L.position).map(L=>L.position)))),[S,n]),[j,z]=A.useState([]),[O,$]=A.useState(!1),[I,W]=A.useState(!1),[_,Q]=A.useState(a!=="system"?a:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=A.useRef(null),G=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=A.useRef(null),R=A.useRef(!1),D=A.useCallback(L=>{var F;(F=S.find(Y=>Y.id===L.id))!=null&&F.delete||Ge.dismiss(L.id),N(Y=>Y.filter(({id:le})=>le!==L.id))},[S]);return A.useEffect(()=>Ge.subscribe(L=>{if(L.dismiss){N(F=>F.map(Y=>Y.id===L.id?{...Y,delete:!0}:Y));return}setTimeout(()=>{Mh.flushSync(()=>{N(F=>{let Y=F.findIndex(le=>le.id===L.id);return Y!==-1?[...F.slice(0,Y),{...F[Y],...L},...F.slice(Y+1)]:[L,...F]})})})}),[]),A.useEffect(()=>{if(a!=="system"){Q(a);return}a==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:L})=>{Q(L?"dark":"light")})},[a]),A.useEffect(()=>{S.length<=1&&$(!1)},[S]),A.useEffect(()=>{let L=F=>{var Y,le;r.every(We=>F[We]||F.code===We)&&($(!0),(Y=U.current)==null||Y.focus()),F.code==="Escape"&&(document.activeElement===U.current||(le=U.current)!=null&&le.contains(document.activeElement))&&$(!1)};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[r]),A.useEffect(()=>{if(U.current)return()=>{C.current&&(C.current.focus({preventScroll:!0}),C.current=null,R.current=!1)}},[U.current]),S.length?A.createElement("section",{"aria-label":`${h} ${G}`,tabIndex:-1},k.map((L,F)=>{var Y;let[le,We]=L.split("-");return A.createElement("ol",{key:L,dir:x==="auto"?Ud():x,tabIndex:-1,ref:U,className:i,"data-sonner-toaster":!0,"data-theme":_,"data-y-position":le,"data-x-position":We,style:{"--front-toast-height":`${((Y=j[0])==null?void 0:Y.height)||0}px`,"--offset":typeof l=="number"?`${l}px`:l||e1,"--width":`${n1}px`,"--gap":`${v}px`,...p},onBlur:Z=>{R.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(R.current=!1,C.current&&(C.current.focus({preventScroll:!0}),C.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||R.current||(R.current=!0,C.current=Z.relatedTarget)},onMouseEnter:()=>$(!0),onMouseMove:()=>$(!0),onMouseLeave:()=>{I||$(!1)},onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},S.filter(Z=>!Z.position&&F===0||Z.position===L).map((Z,ut)=>{var Zt,Jt;return A.createElement(l1,{key:Z.id,icons:m,index:ut,toast:Z,defaultRichColors:u,duration:(Zt=y==null?void 0:y.duration)!=null?Zt:f,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:t,visibleToasts:d,closeButton:(Jt=y==null?void 0:y.closeButton)!=null?Jt:s,interacting:I,position:L,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:D,toasts:S.filter(en=>en.position==Z.position),heights:j.filter(en=>en.position==Z.position),setHeights:z,expandByDefault:o,gap:v,loadingIcon:b,expanded:O,pauseWhenPageIsHidden:g,cn:E})}))})):null};const u1=({...e})=>{const{theme:t="system"}=Dx();return c.jsx(a1,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},c1=["top","right","bottom","left"],Rn=Math.min,Ye=Math.max,ki=Math.round,zs=Math.floor,An=e=>({x:e,y:e}),d1={left:"right",right:"left",bottom:"top",top:"bottom"},f1={start:"end",end:"start"};function Qa(e,t,n){return Ye(e,Rn(t,n))}function Yt(e,t){return typeof e=="function"?e(t):e}function Xt(e){return e.split("-")[0]}function to(e){return e.split("-")[1]}function oc(e){return e==="x"?"y":"x"}function sc(e){return e==="y"?"height":"width"}function On(e){return["top","bottom"].includes(Xt(e))?"y":"x"}function ic(e){return oc(On(e))}function p1(e,t,n){n===void 0&&(n=!1);const r=to(e),o=ic(e),s=sc(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Pi(i)),[i,Pi(i)]}function h1(e){const t=Pi(e);return[Ga(e),t,Ga(t)]}function Ga(e){return e.replace(/start|end/g,t=>f1[t])}function m1(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function g1(e,t,n,r){const o=to(e);let s=m1(Xt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Ga)))),s}function Pi(e){return e.replace(/left|right|bottom|top/g,t=>d1[t])}function v1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cm(e){return typeof e!="number"?v1(e):{top:e,right:e,bottom:e,left:e}}function ji(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Bd(e,t,n){let{reference:r,floating:o}=e;const s=On(t),i=ic(t),l=sc(i),a=Xt(t),u=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let y;switch(a){case"top":y={x:f,y:r.y-o.height};break;case"bottom":y={x:f,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-o.width,y:p};break;default:y={x:r.x,y:r.y}}switch(to(t)){case"start":y[i]-=d*(n&&u?-1:1);break;case"end":y[i]+=d*(n&&u?-1:1);break}return y}const y1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Bd(u,r,a),d=r,y={},x=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:a}=t,{element:u,padding:f=0}=Yt(e,t)||{};if(u==null)return{};const p=Cm(f),d={x:n,y:r},y=ic(o),x=sc(y),v=await i.getDimensions(u),b=y==="y",m=b?"top":"left",h=b?"bottom":"right",g=b?"clientHeight":"clientWidth",E=s.reference[x]+s.reference[y]-d[y]-s.floating[x],S=d[y]-s.reference[y],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=N?N[g]:0;(!k||!await(i.isElement==null?void 0:i.isElement(N)))&&(k=l.floating[g]||s.floating[x]);const j=E/2-S/2,z=k/2-v[x]/2-1,O=Rn(p[m],z),$=Rn(p[h],z),I=O,W=k-v[x]-$,_=k/2-v[x]/2+j,Q=Qa(I,_,W),U=!a.arrow&&to(o)!=null&&_!==Q&&s.reference[x]/2-(__<=0)){var $,I;const _=((($=s.flip)==null?void 0:$.index)||0)+1,Q=k[_];if(Q)return{data:{index:_,overflows:O},reset:{placement:Q}};let U=(I=O.filter(G=>G.overflows[0]<=0).sort((G,C)=>G.overflows[1]-C.overflows[1])[0])==null?void 0:I.placement;if(!U)switch(y){case"bestFit":{var W;const G=(W=O.filter(C=>{if(N){const R=On(C.placement);return R===h||R==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,D)=>R+D,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:W[0];G&&(U=G);break}case"initialPlacement":U=l;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function Vd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Hd(e){return c1.some(t=>e[t]>=0)}const b1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Yt(e,t);switch(r){case"referenceHidden":{const s=await Zo(t,{...o,elementContext:"reference"}),i=Vd(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Hd(i)}}}case"escaped":{const s=await Zo(t,{...o,altBoundary:!0}),i=Vd(s,n.floating);return{data:{escapedOffsets:i,escaped:Hd(i)}}}default:return{}}}}};async function E1(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Xt(n),l=to(n),a=On(n)==="y",u=["left","top"].includes(i)?-1:1,f=s&&a?-1:1,p=Yt(t,e);let{mainAxis:d,crossAxis:y,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof x=="number"&&(y=l==="end"?x*-1:x),a?{x:y*f,y:d*u}:{x:d*u,y:y*f}}const S1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,a=await E1(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:i}}}}},C1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:b=>{let{x:m,y:h}=b;return{x:m,y:h}}},...a}=Yt(e,t),u={x:n,y:r},f=await Zo(t,a),p=On(Xt(o)),d=oc(p);let y=u[d],x=u[p];if(s){const b=d==="y"?"top":"left",m=d==="y"?"bottom":"right",h=y+f[b],g=y-f[m];y=Qa(h,y,g)}if(i){const b=p==="y"?"top":"left",m=p==="y"?"bottom":"right",h=x+f[b],g=x-f[m];x=Qa(h,x,g)}const v=l.fn({...t,[d]:y,[p]:x});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:s,[p]:i}}}}}},N1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Yt(e,t),f={x:n,y:r},p=On(o),d=oc(p);let y=f[d],x=f[p];const v=Yt(l,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const g=d==="y"?"height":"width",E=s.reference[d]-s.floating[g]+b.mainAxis,S=s.reference[d]+s.reference[g]-b.mainAxis;yS&&(y=S)}if(u){var m,h;const g=d==="y"?"width":"height",E=["top","left"].includes(Xt(o)),S=s.reference[p]-s.floating[g]+(E&&((m=i.offset)==null?void 0:m[p])||0)+(E?0:b.crossAxis),N=s.reference[p]+s.reference[g]+(E?0:((h=i.offset)==null?void 0:h[p])||0)-(E?b.crossAxis:0);xN&&(x=N)}return{[d]:y,[p]:x}}}},k1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:a=()=>{},...u}=Yt(e,t),f=await Zo(t,u),p=Xt(o),d=to(o),y=On(o)==="y",{width:x,height:v}=s.floating;let b,m;p==="top"||p==="bottom"?(b=p,m=d===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(m=p,b=d==="end"?"top":"bottom");const h=v-f.top-f.bottom,g=x-f.left-f.right,E=Rn(v-f[b],h),S=Rn(x-f[m],g),N=!t.middlewareData.shift;let k=E,j=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=h),N&&!d){const O=Ye(f.left,0),$=Ye(f.right,0),I=Ye(f.top,0),W=Ye(f.bottom,0);y?j=x-2*(O!==0||$!==0?O+$:Ye(f.left,f.right)):k=v-2*(I!==0||W!==0?I+W:Ye(f.top,f.bottom))}await a({...t,availableWidth:j,availableHeight:k});const z=await i.getDimensions(l.floating);return x!==z.width||v!==z.height?{reset:{rects:!0}}:{}}}};function Zi(){return typeof window<"u"}function no(e){return Nm(e)?(e.nodeName||"").toLowerCase():"#document"}function Ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mt(e){var t;return(t=(Nm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nm(e){return Zi()?e instanceof Node||e instanceof Ze(e).Node:!1}function wt(e){return Zi()?e instanceof Element||e instanceof Ze(e).Element:!1}function _t(e){return Zi()?e instanceof HTMLElement||e instanceof Ze(e).HTMLElement:!1}function Wd(e){return!Zi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ze(e).ShadowRoot}function cs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function P1(e){return["table","td","th"].includes(no(e))}function Ji(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function lc(e){const t=ac(),n=wt(e)?bt(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function j1(e){let t=_n(e);for(;_t(t)&&!Yr(t);){if(lc(t))return t;if(Ji(t))return null;t=_n(t)}return null}function ac(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Yr(e){return["html","body","#document"].includes(no(e))}function bt(e){return Ze(e).getComputedStyle(e)}function el(e){return wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _n(e){if(no(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wd(e)&&e.host||Mt(e);return Wd(t)?t.host:t}function km(e){const t=_n(e);return Yr(t)?e.ownerDocument?e.ownerDocument.body:e.body:_t(t)&&cs(t)?t:km(t)}function Jo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=km(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ze(o);if(s){const l=Ka(i);return t.concat(i,i.visualViewport||[],cs(o)?o:[],l&&n?Jo(l):[])}return t.concat(o,Jo(o,[],n))}function Ka(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Pm(e){const t=bt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_t(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=ki(n)!==s||ki(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function uc(e){return wt(e)?e:e.contextElement}function Tr(e){const t=uc(e);if(!_t(t))return An(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Pm(t);let i=(s?ki(n.width):n.width)/r,l=(s?ki(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const T1=An(0);function jm(e){const t=Ze(e);return!ac()||!t.visualViewport?T1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function R1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ze(e)?!1:t}function nr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=uc(e);let i=An(1);t&&(r?wt(r)&&(i=Tr(r)):i=Tr(e));const l=R1(s,n,r)?jm(s):An(0);let a=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(s){const d=Ze(s),y=r&&wt(r)?Ze(r):r;let x=d,v=Ka(x);for(;v&&r&&y!==x;){const b=Tr(v),m=v.getBoundingClientRect(),h=bt(v),g=m.left+(v.clientLeft+parseFloat(h.paddingLeft))*b.x,E=m.top+(v.clientTop+parseFloat(h.paddingTop))*b.y;a*=b.x,u*=b.y,f*=b.x,p*=b.y,a+=g,u+=E,x=Ze(v),v=Ka(x)}}return ji({width:f,height:p,x:a,y:u})}function A1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Mt(r),l=t?Ji(t.floating):!1;if(r===i||l&&s)return n;let a={scrollLeft:0,scrollTop:0},u=An(1);const f=An(0),p=_t(r);if((p||!p&&!s)&&((no(r)!=="body"||cs(i))&&(a=el(r)),_t(r))){const d=nr(r);u=Tr(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+f.x,y:n.y*u.y-a.scrollTop*u.y+f.y}}function O1(e){return Array.from(e.getClientRects())}function Ya(e,t){const n=el(e).scrollLeft;return t?t.left+n:nr(Mt(e)).left+n}function _1(e){const t=Mt(e),n=el(e),r=e.ownerDocument.body,o=Ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Ya(e);const l=-n.scrollTop;return bt(r).direction==="rtl"&&(i+=Ye(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}function M1(e,t){const n=Ze(e),r=Mt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;const u=ac();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l,y:a}}function L1(e,t){const n=nr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=_t(e)?Tr(e):An(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,a=o*s.x,u=r*s.y;return{width:i,height:l,x:a,y:u}}function Qd(e,t,n){let r;if(t==="viewport")r=M1(e,n);else if(t==="document")r=_1(Mt(e));else if(wt(t))r=L1(t,n);else{const o=jm(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return ji(r)}function Tm(e,t){const n=_n(e);return n===t||!wt(n)||Yr(n)?!1:bt(n).position==="fixed"||Tm(n,t)}function z1(e,t){const n=t.get(e);if(n)return n;let r=Jo(e,[],!1).filter(l=>wt(l)&&no(l)!=="body"),o=null;const s=bt(e).position==="fixed";let i=s?_n(e):e;for(;wt(i)&&!Yr(i);){const l=bt(i),a=lc(i);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||cs(i)&&!a&&Tm(e,i))?r=r.filter(f=>f!==i):o=l,i=_n(i)}return t.set(e,r),r}function I1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ji(t)?[]:z1(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((u,f)=>{const p=Qd(t,f,o);return u.top=Ye(p.top,u.top),u.right=Rn(p.right,u.right),u.bottom=Rn(p.bottom,u.bottom),u.left=Ye(p.left,u.left),u},Qd(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function D1(e){const{width:t,height:n}=Pm(e);return{width:t,height:n}}function F1(e,t,n){const r=_t(t),o=Mt(t),s=n==="fixed",i=nr(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const a=An(0);if(r||!r&&!s)if((no(t)!=="body"||cs(o))&&(l=el(t)),r){const y=nr(t,!0,s,t);a.x=y.x+t.clientLeft,a.y=y.y+t.clientTop}else o&&(a.x=Ya(o));let u=0,f=0;if(o&&!r&&!s){const y=o.getBoundingClientRect();f=y.top+l.scrollTop,u=y.left+l.scrollLeft-Ya(o,y)}const p=i.left+l.scrollLeft-a.x-u,d=i.top+l.scrollTop-a.y-f;return{x:p,y:d,width:i.width,height:i.height}}function Hl(e){return bt(e).position==="static"}function Gd(e,t){if(!_t(e)||bt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Mt(e)===n&&(n=n.ownerDocument.body),n}function Rm(e,t){const n=Ze(e);if(Ji(e))return n;if(!_t(e)){let o=_n(e);for(;o&&!Yr(o);){if(wt(o)&&!Hl(o))return o;o=_n(o)}return n}let r=Gd(e,t);for(;r&&P1(r)&&Hl(r);)r=Gd(r,t);return r&&Yr(r)&&Hl(r)&&!lc(r)?n:r||j1(e)||n}const $1=async function(e){const t=this.getOffsetParent||Rm,n=this.getDimensions,r=await n(e.floating);return{reference:F1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function U1(e){return bt(e).direction==="rtl"}const B1={convertOffsetParentRelativeRectToViewportRelativeRect:A1,getDocumentElement:Mt,getClippingRect:I1,getOffsetParent:Rm,getElementRects:$1,getClientRects:O1,getDimensions:D1,getScale:Tr,isElement:wt,isRTL:U1};function V1(e,t){let n=null,r;const o=Mt(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const{left:u,top:f,width:p,height:d}=e.getBoundingClientRect();if(l||t(),!p||!d)return;const y=zs(f),x=zs(o.clientWidth-(u+p)),v=zs(o.clientHeight-(f+d)),b=zs(u),h={rootMargin:-y+"px "+-x+"px "+-v+"px "+-b+"px",threshold:Ye(0,Rn(1,a))||1};let g=!0;function E(S){const N=S[0].intersectionRatio;if(N!==a){if(!g)return i();N?i(!1,N):r=setTimeout(()=>{i(!1,1e-7)},1e3)}g=!1}try{n=new IntersectionObserver(E,{...h,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,h)}n.observe(e)}return i(!0),s}function H1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=uc(e),f=o||s?[...u?Jo(u):[],...Jo(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const p=u&&l?V1(u,n):null;let d=-1,y=null;i&&(y=new ResizeObserver(m=>{let[h]=m;h&&h.target===u&&y&&(y.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var g;(g=y)==null||g.observe(t)})),n()}),u&&!a&&y.observe(u),y.observe(t));let x,v=a?nr(e):null;a&&b();function b(){const m=nr(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,x=requestAnimationFrame(b)}return n(),()=>{var m;f.forEach(h=>{o&&h.removeEventListener("scroll",n),s&&h.removeEventListener("resize",n)}),p==null||p(),(m=y)==null||m.disconnect(),y=null,a&&cancelAnimationFrame(x)}}const W1=S1,Q1=C1,G1=w1,K1=k1,Y1=b1,Kd=x1,X1=N1,q1=(e,t,n)=>{const r=new Map,o={platform:B1,...n},s={...o.platform,_c:r};return y1(e,t,{...o,platform:s})};var Js=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Ti(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ti(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ti(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Am(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yd(e,t){const n=Am(e);return Math.round(t*n)/n}function Wl(e){const t=w.useRef(e);return Js(()=>{t.current=e}),t}function Z1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[f,p]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,y]=w.useState(r);Ti(d,r)||y(r);const[x,v]=w.useState(null),[b,m]=w.useState(null),h=w.useCallback(C=>{C!==N.current&&(N.current=C,v(C))},[]),g=w.useCallback(C=>{C!==k.current&&(k.current=C,m(C))},[]),E=s||x,S=i||b,N=w.useRef(null),k=w.useRef(null),j=w.useRef(f),z=a!=null,O=Wl(a),$=Wl(o),I=Wl(u),W=w.useCallback(()=>{if(!N.current||!k.current)return;const C={placement:t,strategy:n,middleware:d};$.current&&(C.platform=$.current),q1(N.current,k.current,C).then(R=>{const D={...R,isPositioned:I.current!==!1};_.current&&!Ti(j.current,D)&&(j.current=D,us.flushSync(()=>{p(D)}))})},[d,t,n,$,I]);Js(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(C=>({...C,isPositioned:!1})))},[u]);const _=w.useRef(!1);Js(()=>(_.current=!0,()=>{_.current=!1}),[]),Js(()=>{if(E&&(N.current=E),S&&(k.current=S),E&&S){if(O.current)return O.current(E,S,W);W()}},[E,S,W,O,z]);const Q=w.useMemo(()=>({reference:N,floating:k,setReference:h,setFloating:g}),[h,g]),U=w.useMemo(()=>({reference:E,floating:S}),[E,S]),G=w.useMemo(()=>{const C={position:n,left:0,top:0};if(!U.floating)return C;const R=Yd(U.floating,f.x),D=Yd(U.floating,f.y);return l?{...C,transform:"translate("+R+"px, "+D+"px)",...Am(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:D}},[n,l,U.floating,f.x,f.y]);return w.useMemo(()=>({...f,update:W,refs:Q,elements:U,floatingStyles:G}),[f,W,Q,U,G])}const J1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kd({element:r.current,padding:o}).fn(n):{}:r?Kd({element:r,padding:o}).fn(n):{}}}},ew=(e,t)=>({...W1(e),options:[e,t]}),tw=(e,t)=>({...Q1(e),options:[e,t]}),nw=(e,t)=>({...X1(e),options:[e,t]}),rw=(e,t)=>({...G1(e),options:[e,t]}),ow=(e,t)=>({...K1(e),options:[e,t]}),sw=(e,t)=>({...Y1(e),options:[e,t]}),iw=(e,t)=>({...J1(e),options:[e,t]});var lw="Arrow",Om=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(He.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Om.displayName=lw;var aw=Om;function uw(e,t=[]){let n=[];function r(s,i){const l=w.createContext(i),a=n.length;n=[...n,i];function u(p){const{scope:d,children:y,...x}=p,v=(d==null?void 0:d[e][a])||l,b=w.useMemo(()=>x,Object.values(x));return c.jsx(v.Provider,{value:b,children:y})}function f(p,d){const y=(d==null?void 0:d[e][a])||l,x=w.useContext(y);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,f]}const o=()=>{const s=n.map(i=>w.createContext(i));return function(l){const a=(l==null?void 0:l[e])||s;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,cw(o,...t)]}function cw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:a,scopeName:u})=>{const p=a(s)[`__scope${u}`];return{...l,...p}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function dw(e){const[t,n]=w.useState(void 0);return tr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const a=s.borderBoxSize,u=Array.isArray(a)?a[0]:a;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var _m="Popper",[Mm,Lm]=uw(_m),[l2,zm]=Mm(_m),Im="PopperAnchor",Dm=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=zm(Im,n),i=w.useRef(null),l=xt(t,i);return w.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.jsx(He.div,{...o,ref:l})});Dm.displayName=Im;var cc="PopperContent",[fw,pw]=Mm(cc),Fm=w.forwardRef((e,t)=>{var ut,Zt,Jt,en,ds,sr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:d=!1,updatePositionStrategy:y="optimized",onPlaced:x,...v}=e,b=zm(cc,n),[m,h]=w.useState(null),g=xt(t,Dn=>h(Dn)),[E,S]=w.useState(null),N=dw(E),k=(N==null?void 0:N.width)??0,j=(N==null?void 0:N.height)??0,z=r+(s!=="center"?"-"+s:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(u)?u:[u],I=$.length>0,W={padding:O,boundary:$.filter(mw),altBoundary:I},{refs:_,floatingStyles:Q,placement:U,isPositioned:G,middlewareData:C}=Z1({strategy:"fixed",placement:z,whileElementsMounted:(...Dn)=>H1(...Dn,{animationFrame:y==="always"}),elements:{reference:b.anchor},middleware:[ew({mainAxis:o+j,alignmentAxis:i}),a&&tw({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?nw():void 0,...W}),a&&rw({...W}),ow({...W,apply:({elements:Dn,rects:ro,availableWidth:fs,availableHeight:tn})=>{const{width:al,height:ul}=ro.reference,be=Dn.floating.style;be.setProperty("--radix-popper-available-width",`${fs}px`),be.setProperty("--radix-popper-available-height",`${tn}px`),be.setProperty("--radix-popper-anchor-width",`${al}px`),be.setProperty("--radix-popper-anchor-height",`${ul}px`)}}),E&&iw({element:E,padding:l}),gw({arrowWidth:k,arrowHeight:j}),d&&sw({strategy:"referenceHidden",...W})]}),[R,D]=Bm(U),L=Ot(x);tr(()=>{G&&(L==null||L())},[G,L]);const F=(ut=C.arrow)==null?void 0:ut.x,Y=(Zt=C.arrow)==null?void 0:Zt.y,le=((Jt=C.arrow)==null?void 0:Jt.centerOffset)!==0,[We,Z]=w.useState();return tr(()=>{m&&Z(window.getComputedStyle(m).zIndex)},[m]),c.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:G?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:We,"--radix-popper-transform-origin":[(en=C.transformOrigin)==null?void 0:en.x,(ds=C.transformOrigin)==null?void 0:ds.y].join(" "),...((sr=C.hide)==null?void 0:sr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(fw,{scope:n,placedSide:R,onArrowChange:S,arrowX:F,arrowY:Y,shouldHideArrow:le,children:c.jsx(He.div,{"data-side":R,"data-align":D,...v,ref:g,style:{...v.style,animation:G?void 0:"none"}})})})});Fm.displayName=cc;var $m="PopperArrow",hw={top:"bottom",right:"left",bottom:"top",left:"right"},Um=w.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=pw($m,r),i=hw[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(aw,{...o,ref:n,style:{...o.style,display:"block"}})})});Um.displayName=$m;function mw(e){return e!==null}var gw=e=>({name:"transformOrigin",options:e,fn(t){var b,m,h;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,f]=Bm(n),p={start:"0%",center:"50%",end:"100%"}[f],d=(((m=o.arrow)==null?void 0:m.x)??0)+l/2,y=(((h=o.arrow)==null?void 0:h.y)??0)+a/2;let x="",v="";return u==="bottom"?(x=i?p:`${d}px`,v=`${-a}px`):u==="top"?(x=i?p:`${d}px`,v=`${r.floating.height+a}px`):u==="right"?(x=`${-a}px`,v=i?p:`${y}px`):u==="left"&&(x=`${r.floating.width+a}px`,v=i?p:`${y}px`),{data:{x,y:v}}}});function Bm(e){const[t,n="center"]=e.split("-");return[t,n]}var vw=Dm,yw=Fm,xw=Um,[tl,a2]=Dh("Tooltip",[Lm]),dc=Lm(),Vm="TooltipProvider",ww=700,Xd="tooltip.open",[bw,Hm]=tl(Vm),Wm=e=>{const{__scopeTooltip:t,delayDuration:n=ww,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[i,l]=w.useState(!0),a=w.useRef(!1),u=w.useRef(0);return w.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),c.jsx(bw,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:w.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:w.useCallback(f=>{a.current=f},[]),disableHoverableContent:o,children:s})};Wm.displayName=Vm;var Qm="Tooltip",[u2,nl]=tl(Qm),Xa="TooltipTrigger",Ew=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nl(Xa,n),s=Hm(Xa,n),i=dc(n),l=w.useRef(null),a=xt(t,l,o.onTriggerChange),u=w.useRef(!1),f=w.useRef(!1),p=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(vw,{asChild:!0,...i,children:c.jsx(He.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ve(e.onPointerMove,d=>{d.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:ve(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:ve(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ve(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ve(e.onBlur,o.onClose),onClick:ve(e.onClick,o.onClose)})})});Ew.displayName=Xa;var Sw="TooltipPortal",[c2,Cw]=tl(Sw,{forceMount:void 0}),Xr="TooltipContent",Gm=w.forwardRef((e,t)=>{const n=Cw(Xr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=nl(Xr,e.__scopeTooltip);return c.jsx(qu,{present:r||i.open,children:i.disableHoverableContent?c.jsx(Km,{side:o,...s,ref:t}):c.jsx(Nw,{side:o,...s,ref:t})})}),Nw=w.forwardRef((e,t)=>{const n=nl(Xr,e.__scopeTooltip),r=Hm(Xr,e.__scopeTooltip),o=w.useRef(null),s=xt(t,o),[i,l]=w.useState(null),{trigger:a,onClose:u}=n,f=o.current,{onPointerInTransitChange:p}=r,d=w.useCallback(()=>{l(null),p(!1)},[p]),y=w.useCallback((x,v)=>{const b=x.currentTarget,m={x:x.clientX,y:x.clientY},h=Tw(m,b.getBoundingClientRect()),g=Rw(m,h),E=Aw(v.getBoundingClientRect()),S=_w([...g,...E]);l(S),p(!0)},[p]);return w.useEffect(()=>()=>d(),[d]),w.useEffect(()=>{if(a&&f){const x=b=>y(b,f),v=b=>y(b,a);return a.addEventListener("pointerleave",x),f.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",v)}}},[a,f,y,d]),w.useEffect(()=>{if(i){const x=v=>{const b=v.target,m={x:v.clientX,y:v.clientY},h=(a==null?void 0:a.contains(b))||(f==null?void 0:f.contains(b)),g=!Ow(m,i);h?d():g&&(d(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[a,f,i,u,d]),c.jsx(Km,{...e,ref:s})}),[kw,Pw]=tl(Qm,{isInside:!1}),Km=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,a=nl(Xr,n),u=dc(n),{onClose:f}=a;return w.useEffect(()=>(document.addEventListener(Xd,f),()=>document.removeEventListener(Xd,f)),[f]),w.useEffect(()=>{if(a.trigger){const p=d=>{const y=d.target;y!=null&&y.contains(a.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[a.trigger,f]),c.jsx(Xu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:c.jsxs(yw,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(Ih,{children:r}),c.jsx(kw,{scope:n,isInside:!0,children:c.jsx(Ny,{id:a.contentId,role:"tooltip",children:o||r})})]})})});Gm.displayName=Xr;var Ym="TooltipArrow",jw=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=dc(n);return Pw(Ym,n).isInside?null:c.jsx(xw,{...o,...r,ref:t})});jw.displayName=Ym;function Tw(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Rw(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Aw(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Ow(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=f>r&&n<(u-l)*(r-a)/(f-a)+l&&(o=!o)}return o}function _w(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Mw(t)}function Mw(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Lw=Wm,Xm=Gm;const zw=Lw,Iw=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(Xm,{ref:r,sideOffset:t,className:Ie("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Iw.displayName=Xm.displayName;var rl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ol=typeof window>"u"||"Deno"in globalThis;function ft(){}function Dw(e,t){return typeof e=="function"?e(t):e}function Fw(e){return typeof e=="number"&&e>=0&&e!==1/0}function $w(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qd(e,t){return typeof e=="function"?e(t):e}function Uw(e,t){return typeof e=="function"?e(t):e}function Zd(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==fc(i,t.options))return!1}else if(!ts(t.queryKey,i))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||s&&!s(t))}function Jd(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(es(t.options.mutationKey)!==es(s))return!1}else if(!ts(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function fc(e,t){return((t==null?void 0:t.queryKeyHashFn)||es)(e)}function es(e){return JSON.stringify(e,(t,n)=>qa(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ts(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ts(e[n],t[n])):!1}function qm(e,t){if(e===t)return e;const n=ef(e)&&ef(t);if(n||qa(e)&&qa(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,l=n?[]:{};let a=0;for(let u=0;u{setTimeout(t,e)})}function Vw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?qm(e,t):t}function Hw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ww(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var pc=Symbol();function Zm(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===pc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Hn,fn,Ar,pf,Qw=(pf=class extends rl{constructor(){super();q(this,Hn);q(this,fn);q(this,Ar);H(this,Ar,t=>{if(!ol&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,fn)||this.setEventListener(P(this,Ar))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,fn))==null||t.call(this),H(this,fn,void 0))}setEventListener(t){var n;H(this,Ar,t),(n=P(this,fn))==null||n.call(this),H(this,fn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Hn)!==t&&(H(this,Hn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,Hn)=="boolean"?P(this,Hn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Hn=new WeakMap,fn=new WeakMap,Ar=new WeakMap,pf),Jm=new Qw,Or,pn,_r,hf,Gw=(hf=class extends rl{constructor(){super();q(this,Or,!0);q(this,pn);q(this,_r);H(this,_r,t=>{if(!ol&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,pn)||this.setEventListener(P(this,_r))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,pn))==null||t.call(this),H(this,pn,void 0))}setEventListener(t){var n;H(this,_r,t),(n=P(this,pn))==null||n.call(this),H(this,pn,t(this.setOnline.bind(this)))}setOnline(t){P(this,Or)!==t&&(H(this,Or,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Or)}},Or=new WeakMap,pn=new WeakMap,_r=new WeakMap,hf),Ri=new Gw;function Kw(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Yw(e){return Math.min(1e3*2**e,3e4)}function eg(e){return(e??"online")==="online"?Ri.isOnline():!0}var tg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ql(e){return e instanceof tg}function ng(e){let t=!1,n=0,r=!1,o;const s=Kw(),i=v=>{var b;r||(d(new tg(v)),(b=e.abort)==null||b.call(e))},l=()=>{t=!0},a=()=>{t=!1},u=()=>Jm.isFocused()&&(e.networkMode==="always"||Ri.isOnline())&&e.canRun(),f=()=>eg(e.networkMode)&&e.canRun(),p=v=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,v),o==null||o(),s.resolve(v))},d=v=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,v),o==null||o(),s.reject(v))},y=()=>new Promise(v=>{var b;o=m=>{(r||u())&&v(m)},(b=e.onPause)==null||b.call(e)}).then(()=>{var v;o=void 0,r||(v=e.onContinue)==null||v.call(e)}),x=()=>{if(r)return;let v;const b=n===0?e.initialPromise:void 0;try{v=b??e.fn()}catch(m){v=Promise.reject(m)}Promise.resolve(v).then(p).catch(m=>{var N;if(r)return;const h=e.retry??(ol?0:3),g=e.retryDelay??Yw,E=typeof g=="function"?g(n,m):g,S=h===!0||typeof h=="number"&&nu()?void 0:y()).then(()=>{t?d(m):x()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:l,continueRetry:a,canStart:f,start:()=>(f()?x():y().then(x),s)}}function Xw(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=l=>setTimeout(l,0);const s=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||i()}return a},batchCalls:l=>(...a)=>{s(()=>{l(...a)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var _e=Xw(),Wn,mf,rg=(mf=class{constructor(){q(this,Wn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fw(this.gcTime)&&H(this,Wn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ol?1/0:5*60*1e3))}clearGcTimeout(){P(this,Wn)&&(clearTimeout(P(this,Wn)),H(this,Wn,void 0))}},Wn=new WeakMap,mf),Mr,Lr,nt,je,ns,Qn,pt,zt,gf,qw=(gf=class extends rg{constructor(t){super();q(this,pt);q(this,Mr);q(this,Lr);q(this,nt);q(this,je);q(this,ns);q(this,Qn);H(this,Qn,!1),H(this,ns,t.defaultOptions),this.setOptions(t.options),this.observers=[],H(this,nt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,H(this,Mr,Jw(this.options)),this.state=t.state??P(this,Mr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,je))==null?void 0:t.promise}setOptions(t){this.options={...P(this,ns),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,nt).remove(this)}setData(t,n){const r=Vw(this.state.data,t,this.options);return Ne(this,pt,zt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ne(this,pt,zt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=P(this,je))==null?void 0:r.promise;return(o=P(this,je))==null||o.cancel(t),n?n.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,Mr))}isActive(){return this.observers.some(t=>Uw(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!$w(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,je))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,je))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,nt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,je)&&(P(this,Qn)?P(this,je).cancel({revert:!0}):P(this,je).cancelRetry()),this.scheduleGc()),P(this,nt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ne(this,pt,zt).call(this,{type:"invalidate"})}fetch(t,n){var a,u,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,je))return P(this,je).continueRetry(),P(this,je).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(d=>d.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(H(this,Qn,!0),r.signal)})},s=()=>{const p=Zm(this.options,n),d={queryKey:this.queryKey,meta:this.meta};return o(d),H(this,Qn,!1),this.options.persister?this.options.persister(p,d,this):p(d)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(i),(a=this.options.behavior)==null||a.onFetch(i,this),H(this,Lr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=i.fetchOptions)==null?void 0:u.meta))&&Ne(this,pt,zt).call(this,{type:"fetch",meta:(f=i.fetchOptions)==null?void 0:f.meta});const l=p=>{var d,y,x,v;Ql(p)&&p.silent||Ne(this,pt,zt).call(this,{type:"error",error:p}),Ql(p)||((y=(d=P(this,nt).config).onError)==null||y.call(d,p,this),(v=(x=P(this,nt).config).onSettled)==null||v.call(x,this.state.data,p,this)),this.scheduleGc()};return H(this,je,ng({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var d,y,x,v;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(b){l(b);return}(y=(d=P(this,nt).config).onSuccess)==null||y.call(d,p,this),(v=(x=P(this,nt).config).onSettled)==null||v.call(x,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,d)=>{Ne(this,pt,zt).call(this,{type:"failed",failureCount:p,error:d})},onPause:()=>{Ne(this,pt,zt).call(this,{type:"pause"})},onContinue:()=>{Ne(this,pt,zt).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),P(this,je).start()}},Mr=new WeakMap,Lr=new WeakMap,nt=new WeakMap,je=new WeakMap,ns=new WeakMap,Qn=new WeakMap,pt=new WeakSet,zt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Zw(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Ql(o)&&o.revert&&P(this,Lr)?{...P(this,Lr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),_e.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,nt).notify({query:this,type:"updated",action:t})})},gf);function Zw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:eg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Jw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var kt,vf,eb=(vf=class extends rl{constructor(t={}){super();q(this,kt);this.config=t,H(this,kt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??fc(o,n);let i=this.get(s);return i||(i=new qw({cache:this,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){P(this,kt).has(t.queryHash)||(P(this,kt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,kt).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,kt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){_e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,kt).get(t)}getAll(){return[...P(this,kt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Zd(t,r)):n}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){_e.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){_e.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},kt=new WeakMap,vf),Pt,Ae,Gn,jt,ln,yf,tb=(yf=class extends rg{constructor(t){super();q(this,jt);q(this,Pt);q(this,Ae);q(this,Gn);this.mutationId=t.mutationId,H(this,Ae,t.mutationCache),H(this,Pt,[]),this.state=t.state||nb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Pt).includes(t)||(P(this,Pt).push(t),this.clearGcTimeout(),P(this,Ae).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){H(this,Pt,P(this,Pt).filter(n=>n!==t)),this.scheduleGc(),P(this,Ae).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Pt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Ae).remove(this))}continue(){var t;return((t=P(this,Gn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,i,l,a,u,f,p,d,y,x,v,b,m,h,g,E,S,N,k;H(this,Gn,ng({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(j,z)=>{Ne(this,jt,ln).call(this,{type:"failed",failureCount:j,error:z})},onPause:()=>{Ne(this,jt,ln).call(this,{type:"pause"})},onContinue:()=>{Ne(this,jt,ln).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Ae).canRun(this)}));const n=this.state.status==="pending",r=!P(this,Gn).canStart();try{if(!n){Ne(this,jt,ln).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(o=P(this,Ae).config).onMutate)==null?void 0:s.call(o,t,this));const z=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t));z!==this.state.context&&Ne(this,jt,ln).call(this,{type:"pending",context:z,variables:t,isPaused:r})}const j=await P(this,Gn).start();return await((u=(a=P(this,Ae).config).onSuccess)==null?void 0:u.call(a,j,t,this.state.context,this)),await((p=(f=this.options).onSuccess)==null?void 0:p.call(f,j,t,this.state.context)),await((y=(d=P(this,Ae).config).onSettled)==null?void 0:y.call(d,j,null,this.state.variables,this.state.context,this)),await((v=(x=this.options).onSettled)==null?void 0:v.call(x,j,null,t,this.state.context)),Ne(this,jt,ln).call(this,{type:"success",data:j}),j}catch(j){try{throw await((m=(b=P(this,Ae).config).onError)==null?void 0:m.call(b,j,t,this.state.context,this)),await((g=(h=this.options).onError)==null?void 0:g.call(h,j,t,this.state.context)),await((S=(E=P(this,Ae).config).onSettled)==null?void 0:S.call(E,void 0,j,this.state.variables,this.state.context,this)),await((k=(N=this.options).onSettled)==null?void 0:k.call(N,void 0,j,t,this.state.context)),j}finally{Ne(this,jt,ln).call(this,{type:"error",error:j})}}finally{P(this,Ae).runNext(this)}}},Pt=new WeakMap,Ae=new WeakMap,Gn=new WeakMap,jt=new WeakSet,ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),_e.batch(()=>{P(this,Pt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Ae).notify({mutation:this,type:"updated",action:t})})},yf);function nb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qe,rs,xf,rb=(xf=class extends rl{constructor(t={}){super();q(this,Qe);q(this,rs);this.config=t,H(this,Qe,new Map),H(this,rs,Date.now())}build(t,n,r){const o=new tb({mutationCache:this,mutationId:++ms(this,rs)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=Is(t),r=P(this,Qe).get(n)??[];r.push(t),P(this,Qe).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Is(t);if(P(this,Qe).has(n)){const o=(r=P(this,Qe).get(n))==null?void 0:r.filter(s=>s!==t);o&&(o.length===0?P(this,Qe).delete(n):P(this,Qe).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=P(this,Qe).get(Is(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=P(this,Qe).get(Is(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){_e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...P(this,Qe).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Jd(n,r))}findAll(t={}){return this.getAll().filter(n=>Jd(t,n))}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return _e.batch(()=>Promise.all(t.map(n=>n.continue().catch(ft))))}},Qe=new WeakMap,rs=new WeakMap,xf);function Is(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function nf(e){return{onFetch:(t,n)=>{var f,p,d,y,x;const r=t.options,o=(d=(p=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:p.fetchMore)==null?void 0:d.direction,s=((y=t.state.data)==null?void 0:y.pages)||[],i=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let v=!1;const b=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},m=Zm(t.options,t.fetchOptions),h=async(g,E,S)=>{if(v)return Promise.reject();if(E==null&&g.pages.length)return Promise.resolve(g);const N={queryKey:t.queryKey,pageParam:E,direction:S?"backward":"forward",meta:t.options.meta};b(N);const k=await m(N),{maxPages:j}=t.options,z=S?Ww:Hw;return{pages:z(g.pages,k,j),pageParams:z(g.pageParams,E,j)}};if(o&&s.length){const g=o==="backward",E=g?ob:rf,S={pages:s,pageParams:i},N=E(r,S);l=await h(S,N,g)}else{const g=e??s.length;do{const E=a===0?i[0]??r.initialPageParam:rf(r,l);if(a>0&&E==null)break;l=await h(l,E),a++}while(a{var v,b;return(b=(v=t.options).persister)==null?void 0:b.call(v,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function rf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ob(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var de,hn,mn,zr,Ir,gn,Dr,Fr,wf,sb=(wf=class{constructor(e={}){q(this,de);q(this,hn);q(this,mn);q(this,zr);q(this,Ir);q(this,gn);q(this,Dr);q(this,Fr);H(this,de,e.queryCache||new eb),H(this,hn,e.mutationCache||new rb),H(this,mn,e.defaultOptions||{}),H(this,zr,new Map),H(this,Ir,new Map),H(this,gn,0)}mount(){ms(this,gn)._++,P(this,gn)===1&&(H(this,Dr,Jm.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onFocus())})),H(this,Fr,Ri.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onOnline())})))}unmount(){var e,t;ms(this,gn)._--,P(this,gn)===0&&((e=P(this,Dr))==null||e.call(this),H(this,Dr,void 0),(t=P(this,Fr))==null||t.call(this),H(this,Fr,void 0))}isFetching(e){return P(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,hn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=P(this,de).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(qd(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return P(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=P(this,de).get(r.queryHash),s=o==null?void 0:o.state.data,i=Dw(t,s);if(i!==void 0)return P(this,de).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return _e.batch(()=>P(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,de);_e.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,de),r={type:"active",...e};return _e.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=_e.batch(()=>P(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ft).catch(ft)}invalidateQueries(e={},t={}){return _e.batch(()=>{if(P(this,de).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=_e.batch(()=>P(this,de).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ft)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ft)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,de).build(this,t);return n.isStaleByTime(qd(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ft).catch(ft)}fetchInfiniteQuery(e){return e.behavior=nf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ft).catch(ft)}ensureInfiniteQueryData(e){return e.behavior=nf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ri.isOnline()?P(this,hn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,de)}getMutationCache(){return P(this,hn)}getDefaultOptions(){return P(this,mn)}setDefaultOptions(e){H(this,mn,e)}setQueryDefaults(e,t){P(this,zr).set(es(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,zr).values()];let n={};return t.forEach(r=>{ts(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){P(this,Ir).set(es(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Ir).values()];let n={};return t.forEach(r=>{ts(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,mn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===pc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,mn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,de).clear(),P(this,hn).clear()}},de=new WeakMap,hn=new WeakMap,mn=new WeakMap,zr=new WeakMap,Ir=new WeakMap,gn=new WeakMap,Dr=new WeakMap,Fr=new WeakMap,wf),ib=w.createContext(void 0),lb=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(ib.Provider,{value:e,children:t}));/** * @remix-run/router v1.20.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function og(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ub(){return Math.random().toString(36).substr(2,8)}function sf(e,t){return{usr:e.state,key:e.key,idx:t}}function Za(e,t,n,r){return n===void 0&&(n=null),Ai({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sl(t):t,{state:n,key:t&&t.key||r||ub()})}function sg(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function sl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function cb(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=xn.Pop,a=null,u=f();u==null&&(u=0,i.replaceState(Ai({},i.state,{idx:u}),""));function f(){return(i.state||{idx:null}).idx}function p(){l=xn.Pop;let b=f(),m=b==null?null:b-u;u=b,a&&a({action:l,location:v.location,delta:m})}function d(b,m){l=xn.Push;let h=Za(v.location,b,m);u=f()+1;let g=sf(h,u),E=v.createHref(h);try{i.pushState(g,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}s&&a&&a({action:l,location:v.location,delta:1})}function y(b,m){l=xn.Replace;let h=Za(v.location,b,m);u=f();let g=sf(h,u),E=v.createHref(h);i.replaceState(g,"",E),s&&a&&a({action:l,location:v.location,delta:0})}function x(b){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof b=="string"?b:sg(b);return h=h.replace(/ $/,"%20"),Ve(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let v={get action(){return l},get location(){return e(o,i)},listen(b){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(of,p),a=b,()=>{o.removeEventListener(of,p),a=null}},createHref(b){return t(o,b)},createURL:x,encodeLocation(b){let m=x(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:y,go(b){return i.go(b)}};return v}var lf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lf||(lf={}));function db(e,t,n){return n===void 0&&(n="/"),fb(e,t,n,!1)}function fb(e,t,n,r){let o=typeof t=="string"?sl(t):t,s=ag(o.pathname||"/",n);if(s==null)return null;let i=ig(e);pb(i);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};a.relativePath.startsWith("/")&&(Ve(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Rr([r,a.relativePath]),f=n.concat(a);s.children&&s.children.length>0&&(Ve(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ig(s.children,t,f,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:wb(u,s.index),routesMeta:f})};return e.forEach((s,i)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,i);else for(let a of lg(s.path))o(s,i,a)}),t}function lg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=lg(r.join("/")),l=[];return l.push(...i.map(a=>a===""?s:[s,a].join("/"))),o&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function pb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bb(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const hb=/^:[\w-]+$/,mb=3,gb=2,vb=1,yb=10,xb=-2,af=e=>e==="*";function wb(e,t){let n=e.split("/"),r=n.length;return n.some(af)&&(r+=xb),t&&(r+=gb),n.filter(o=>!af(o)).reduce((o,s)=>o+(hb.test(s)?mb:s===""?vb:yb),r)}function bb(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Eb(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let l=0;l{let{paramName:d,isOptional:y}=f;if(d==="*"){let v=l[p]||"";i=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const x=l[p];return y&&!x?u[d]=void 0:u[d]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function Sb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),og(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Cb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return og(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ag(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Rr=e=>e.join("/").replace(/\/\/+/g,"/"),Nb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function kb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ug=["post","put","patch","delete"];new Set(ug);const Pb=["get",...ug];new Set(Pb);/** * React Router v6.27.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},b,{params:Object.assign({},l,b.params),pathname:Rr([a,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?a:Rr([a,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,r);return t&&v?w.createElement(il.Provider,{value:{location:Oi({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:xn.Pop}},v):v}function Ob(){let e=$b(),t=kb(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:o},n):null,null)}const _b=w.createElement(Ob,null);class Mb extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(ll.Provider,{value:this.props.routeContext},w.createElement(dg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Lb(e){let{routeContext:t,match:n,children:r}=e,o=w.useContext(jb);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(ll.Provider,{value:t},r)}function zb(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=i.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);f>=0||Ve(!1),i=i.slice(0,Math.min(i.length,f+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((f,p,d)=>{let y,x=!1,v=null,b=null;n&&(y=l&&p.route.id?l[p.route.id]:void 0,v=p.route.errorElement||_b,a&&(u<0&&d===0?(x=!0,b=null):u===d&&(x=!0,b=p.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,d+1)),h=()=>{let g;return y?g=v:x?g=b:p.route.Component?g=w.createElement(p.route.Component,null):p.route.element?g=p.route.element:g=f,w.createElement(Lb,{match:p,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:g})};return n&&(p.route.ErrorBoundary||p.route.errorElement||d===0)?w.createElement(Mb,{location:n.location,revalidation:n.revalidation,component:v,error:y,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Ja=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ja||{});function Ib(e){let t=w.useContext(Tb);return t||Ve(!1),t}function Db(e){let t=w.useContext(ll);return t||Ve(!1),t}function Fb(e){let t=Db(),n=t.matches[t.matches.length-1];return n.route.id||Ve(!1),n.route.id}function $b(){var e;let t=w.useContext(dg),n=Ib(Ja.UseRouteError),r=Fb(Ja.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function eu(e){Ve(!1)}function Ub(e){let{basename:t="/",children:n=null,location:r,navigationType:o=xn.Pop,navigator:s,static:i=!1,future:l}=e;hc()&&Ve(!1);let a=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:a,navigator:s,static:i,future:Oi({v7_relativeSplatPath:!1},l)}),[a,l,s,i]);typeof r=="string"&&(r=sl(r));let{pathname:f="/",search:p="",hash:d="",state:y=null,key:x="default"}=r,v=w.useMemo(()=>{let b=ag(f,a);return b==null?null:{location:{pathname:b,search:p,hash:d,state:y,key:x},navigationType:o}},[a,f,p,d,y,x,o]);return v==null?null:w.createElement(cg.Provider,{value:u},w.createElement(il.Provider,{children:n,value:v}))}function Bb(e){let{children:t,location:n}=e;return Rb(tu(t),n)}new Promise(()=>{});function tu(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,o)=>{if(!w.isValidElement(r))return;let s=[...t,o];if(r.type===w.Fragment){n.push.apply(n,tu(r.props.children,s));return}r.type!==eu&&Ve(!1),!r.props.index||!r.props.children||Ve(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=tu(r.props.children,s)),n.push(i)}),n}/** * React Router DOM v6.27.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const Vb="6";try{window.__reactRouterVersion=Vb}catch{}const Hb="startTransition",cf=Ig[Hb];function Wb(e){let{basename:t,children:n,future:r,window:o}=e,s=w.useRef();s.current==null&&(s.current=ab({window:o,v5Compat:!0}));let i=s.current,[l,a]=w.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},f=w.useCallback(p=>{u&&cf?cf(()=>a(p)):a(p)},[a,u]);return w.useLayoutEffect(()=>i.listen(f),[i,f]),w.createElement(Ub,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}var df;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(df||(df={}));var ff;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ff||(ff={}));const Qb=tc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Mn=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Yo:"button";return c.jsx(i,{className:Ie(Qb({variant:t,size:n,className:e})),ref:s,...o})});Mn.displayName="Button";const Gb=tc("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Bt({className:e,variant:t,...n}){return c.jsx("div",{className:Ie(Gb({variant:t}),e),...n})}const Kb=()=>c.jsxs("section",{className:"relative min-h-screen flex items-center justify-center overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-background to-muted/20"}),c.jsx("div",{className:"absolute inset-0 bg-[var(--gradient-hero)]"}),c.jsx("div",{className:"absolute top-20 left-10 animate-float opacity-10",children:c.jsx("div",{className:"p-4 rounded-full bg-primary",children:c.jsx(Xo,{className:"h-16 w-16 text-primary-foreground"})})}),c.jsx("div",{className:"absolute top-40 right-20 animate-float opacity-10",style:{animationDelay:"1s"},children:c.jsx("div",{className:"p-3 rounded-full bg-accent",children:c.jsx(Kr,{className:"h-12 w-12 text-accent-foreground"})})}),c.jsx("div",{className:"absolute bottom-32 left-20 animate-float opacity-10",style:{animationDelay:"2s"},children:c.jsx("div",{className:"p-3 rounded-full bg-muted",children:c.jsx(Zs,{className:"h-12 w-12 text-muted-foreground"})})}),c.jsx("div",{className:"container relative z-10 mx-auto px-4 text-center",children:c.jsxs("div",{className:"max-w-5xl mx-auto",children:[c.jsxs("div",{className:"flex flex-wrap justify-center gap-4 mb-8",children:[c.jsxs(Bt,{className:"bg-primary text-primary-foreground border-0 px-4 py-2 shadow-lg",children:[c.jsx(Xo,{className:"h-4 w-4 mr-2"}),"Especialistas em Recuperação"]}),c.jsxs(Bt,{className:"bg-accent text-accent-foreground border-0 px-4 py-2 shadow-lg",children:[c.jsx(Gr,{className:"h-4 w-4 mr-2"}),"95% Taxa de Sucesso"]}),c.jsxs(Bt,{className:"bg-muted text-muted-foreground border border-border px-4 py-2 shadow-lg",children:[c.jsx(qo,{className:"h-4 w-4 mr-2"}),"Atendimento 24h"]})]}),c.jsxs("h1",{className:"text-5xl md:text-7xl lg:text-8xl font-bold mb-8 leading-tight",children:[c.jsx("span",{className:"text-foreground",children:"Caiu em um "}),c.jsx("span",{className:"text-primary font-bold",children:"GOLPE BANCÁRIO?"}),c.jsx("br",{}),c.jsx("span",{className:"text-accent font-bold",children:"Recuperamos seu dinheiro!"})]}),c.jsx("div",{className:"relative mb-10",children:c.jsxs("p",{className:"text-2xl md:text-3xl text-muted-foreground mb-6 max-w-4xl mx-auto leading-relaxed",children:[c.jsx("span",{className:"text-accent font-bold",children:"Especialistas em fraudes digitais"})," com",c.jsxs("span",{className:"text-primary font-bold",children:[" ","milhões recuperados"," "]}),"para nossos clientes"]})}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-12",children:[c.jsxs("div",{className:"p-6 rounded-2xl bg-card border border-border backdrop-blur-sm",children:[c.jsx("div",{className:"p-3 rounded-full bg-primary w-fit mx-auto mb-4",children:c.jsx(Gr,{className:"h-8 w-8 text-primary-foreground"})}),c.jsx("h3",{className:"font-bold text-lg mb-2 text-primary",children:"Consulta Gratuita"}),c.jsx("p",{className:"text-muted-foreground",children:"Análise completa do seu caso sem custo"})]}),c.jsxs("div",{className:"p-6 rounded-2xl bg-card border border-border backdrop-blur-sm",children:[c.jsx("div",{className:"p-3 rounded-full bg-accent w-fit mx-auto mb-4",children:c.jsx(Kr,{className:"h-8 w-8 text-accent-foreground"})}),c.jsx("h3",{className:"font-bold text-lg mb-2 text-accent",children:"Resultados Garantidos"}),c.jsx("p",{className:"text-muted-foreground",children:"Só cobramos quando recuperarmos seu dinheiro"})]}),c.jsxs("div",{className:"p-6 rounded-2xl bg-card border border-border backdrop-blur-sm",children:[c.jsx("div",{className:"p-3 rounded-full bg-muted w-fit mx-auto mb-4",children:c.jsx(qo,{className:"h-8 w-8 text-muted-foreground"})}),c.jsx("h3",{className:"font-bold text-lg mb-2 text-foreground",children:"Atendimento Rápido"}),c.jsx("p",{className:"text-muted-foreground",children:"Resposta em até 30 minutos via WhatsApp"})]})]}),c.jsxs("div",{className:"p-6 rounded-2xl mb-10 bg-card border border-border backdrop-blur-sm",children:[c.jsxs("div",{className:"flex items-center justify-center gap-3 text-3xl md:text-4xl font-bold mb-2",children:[c.jsx("div",{className:"p-2 rounded-full bg-accent",children:c.jsx(Ni,{className:"h-8 w-8 text-accent-foreground"})}),c.jsx("span",{className:"text-accent",children:"(11) 93424-6615"})]}),c.jsxs("p",{className:"text-muted-foreground",children:[c.jsx("span",{className:"font-semibold",children:"24 horas disponível"})," • Atendimento Nacional"]})]}),c.jsx(Mn,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary/90 text-primary-foreground font-bold px-12 py-8 text-xl rounded-2xl shadow-lg transition-all duration-300 hover:scale-105",children:c.jsx("a",{href:"https://api.whatsapp.com/send/?phone=5511934246615&text=Olá!+Caí+em+um+golpe+e+gostaria+de+recuperar+meu+dinheiro.+Podem+me+ajudar?&type=phone_number&app_absent=0",target:"_blank",rel:"noopener noreferrer",children:"💰 QUERO RECUPERAR MEUS VALORES"})}),c.jsxs("p",{className:"text-sm text-muted-foreground mt-6 bg-white/60 backdrop-blur-sm rounded-full px-6 py-2 w-fit mx-auto",children:["⚡ ",c.jsx("strong",{children:"Clique para falar diretamente no WhatsApp"})," ⚡"]})]})})]}),Vt=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ie("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Vt.displayName="Card";const Ro=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ie("flex flex-col space-y-1.5 p-6",e),...t}));Ro.displayName="CardHeader";const Ao=w.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:Ie("text-2xl font-semibold leading-none tracking-tight",e),...t}));Ao.displayName="CardTitle";const pg=w.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:Ie("text-sm text-muted-foreground",e),...t}));pg.displayName="CardDescription";const Ht=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ie("p-6 pt-0",e),...t}));Ht.displayName="CardContent";const Yb=w.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ie("flex items-center p-6 pt-0",e),...t}));Yb.displayName="CardFooter";const Xb=()=>{const e="https://api.whatsapp.com/send/?phone=5511934246615&text=Olá!+Caí+em+um+golpe+e+gostaria+de+recuperar+meu+dinheiro.+Podem+me+ajudar?&type=phone_number&app_absent=0",t=[{icon:Ci,title:"Fraude Bancária e Golpe do PIX",description:"Fizeram PIX da sua conta sem autorização? Especialistas em responsabilizar bancos por falhas de segurança.",successRate:"98%"},{icon:qy,title:"Golpe do WhatsApp",description:"Criminosos clonaram seu WhatsApp e pediram dinheiro para seus contatos? Ajudamos você a recuperar os valores e obter indenização.",successRate:"95%"},{icon:Ci,title:"PIX Enviado por Engano",description:"Enviou PIX para pessoa errada por engano? Temos estratégias jurídicas para recuperar seu dinheiro.",successRate:"92%"},{icon:Gy,title:"Golpe da Troca de Cartão",description:"Trocaram seu cartão e fizeram compras ou saques? Responsabilizamos o banco e recuperamos seu prejuízo.",successRate:"97%"},{icon:Yy,title:"Golpe da Mão Fantasma",description:"Alguém mexeu no seu celular no banco e fez operações? Provamos a falha de segurança e recuperamos seu dinheiro.",successRate:"94%"},{icon:Ky,title:"Golpe do Boleto Falso",description:"Pagou um boleto falso enviado por criminosos? Processamos as instituições responsáveis pela falha de segurança.",successRate:"90%"}];return c.jsxs("section",{className:"py-24 relative overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-background to-muted/10"}),c.jsx("div",{className:"absolute top-20 left-10 animate-float opacity-10",children:c.jsx("div",{className:"p-4 rounded-full bg-primary",children:c.jsx(Xo,{className:"h-12 w-12 text-primary-foreground"})})}),c.jsx("div",{className:"absolute top-32 right-20 animate-float opacity-10",style:{animationDelay:"1s"},children:c.jsx("div",{className:"p-4 rounded-full bg-accent",children:c.jsx(Kr,{className:"h-12 w-12 text-accent-foreground"})})}),c.jsxs("div",{className:"container relative z-10 mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-20",children:[c.jsxs("div",{className:"flex justify-center gap-4 mb-8",children:[c.jsxs(Bt,{className:"bg-primary text-primary-foreground border-0 px-6 py-3 text-lg shadow-lg",children:[c.jsx(Xo,{className:"h-5 w-5 mr-2"}),"Serviços Especializados"]}),c.jsxs(Bt,{className:"bg-accent text-accent-foreground border-0 px-6 py-3 text-lg shadow-lg",children:[c.jsx(nc,{className:"h-5 w-5 mr-2"}),"96% Taxa de Sucesso"]})]}),c.jsxs("h2",{className:"text-4xl md:text-6xl font-bold mb-8 leading-tight",children:[c.jsx("span",{className:"text-foreground",children:"Recuperamos seu dinheiro em "}),c.jsx("span",{className:"text-primary",children:"QUALQUER TIPO DE GOLPE"})]}),c.jsxs("p",{className:"text-xl md:text-2xl text-muted-foreground max-w-4xl mx-auto mb-8",children:[c.jsx("span",{className:"text-accent font-bold",children:"Experiência comprovada"})," e",c.jsxs("span",{className:"text-primary font-bold",children:[" ","resultados efetivos"," "]}),"em fraudes bancárias e golpes digitais"]}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 max-w-4xl mx-auto",children:[c.jsxs("div",{className:"p-4 rounded-xl bg-card border border-border",children:[c.jsx("div",{className:"text-2xl font-bold text-primary",children:"R$ 50M+"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Recuperados"})]}),c.jsxs("div",{className:"p-4 rounded-xl bg-card border border-border",children:[c.jsx("div",{className:"text-2xl font-bold text-accent",children:"2500+"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Casos Vencidos"})]}),c.jsxs("div",{className:"p-4 rounded-xl bg-card border border-border",children:[c.jsx("div",{className:"text-2xl font-bold text-primary",children:"96%"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Taxa Sucesso"})]}),c.jsxs("div",{className:"p-4 rounded-xl bg-card border border-border",children:[c.jsx("div",{className:"text-2xl font-bold text-accent",children:"6 Anos"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Experiência"})]})]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:t.map((n,r)=>{const o=n.icon;return c.jsxs(Vt,{className:"group hover:shadow-2xl transition-all duration-500 hover:-translate-y-4 bg-card border border-border overflow-hidden relative",children:[c.jsxs(Ro,{className:"text-center pb-4 relative z-10",children:[c.jsx("div",{className:"mx-auto mb-4 p-4 rounded-2xl bg-primary w-fit group-hover:scale-110 transition-transform duration-300 shadow-lg",children:c.jsx(o,{className:"h-8 w-8 text-primary-foreground"})}),c.jsx(Ao,{className:"text-xl font-bold group-hover:text-primary transition-colors mb-2",children:n.title}),c.jsx("div",{className:"flex justify-center gap-2 mb-4",children:c.jsxs(Bt,{className:"bg-accent text-accent-foreground text-xs px-2 py-1",children:[c.jsx(Kr,{className:"h-3 w-3 mr-1"}),n.successRate," sucesso"]})})]}),c.jsxs(Ht,{className:"relative z-10",children:[c.jsx(pg,{className:"text-center text-muted-foreground leading-relaxed mb-6",children:n.description}),c.jsx(Mn,{asChild:!0,className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-bold transition-all duration-300 hover:scale-105 shadow-lg",children:c.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:[c.jsx(qo,{className:"h-4 w-4 mr-2"}),"Consultar Agora"]})})]})]},r)})}),c.jsxs("div",{className:"text-center mt-16",children:[c.jsxs("p",{className:"text-lg text-muted-foreground mb-6",children:[c.jsx("span",{className:"font-bold text-foreground",children:"⚠️ Não encontrou seu tipo de golpe?"})," Temos experiência em TODOS os tipos de fraude!"]}),c.jsx(Mn,{asChild:!0,size:"lg",className:"bg-accent hover:bg-accent/90 text-accent-foreground font-bold px-12 py-6 text-xl rounded-2xl shadow-2xl transition-all duration-300 hover:scale-105",children:c.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:"🚨 FALAR COM ESPECIALISTA AGORA"})})]})]})]})},qb=()=>c.jsxs("section",{className:"py-24 relative overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-background to-muted/5"}),c.jsxs("div",{className:"container relative z-10 mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-16",children:[c.jsxs("h2",{className:"text-4xl md:text-5xl font-bold mb-6",children:[c.jsx("span",{className:"text-foreground",children:"Resultados "}),c.jsx("span",{className:"gradient-text",children:"Comprovados"})]}),c.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Veja as conversas reais com nossos clientes que recuperaram seus valores"})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"bg-white rounded-3xl shadow-2xl overflow-hidden border-2 border-primary/10",children:c.jsx("img",{src:"/lovable-uploads/170bc5fa-2ff6-4646-a2e4-fe31c2125445.png",alt:"Conversas WhatsApp reais mostrando casos de sucesso na recuperação de valores",className:"w-full h-auto"})}),c.jsx("div",{className:"absolute -top-4 -right-4 bg-accent text-accent-foreground rounded-full p-4 shadow-lg",children:c.jsx(Gr,{className:"h-8 w-8"})}),c.jsx("div",{className:"absolute -bottom-4 -left-4 bg-primary text-primary-foreground rounded-full p-3 shadow-lg",children:c.jsx(Kr,{className:"h-6 w-6"})})]}),c.jsxs("div",{className:"space-y-8",children:[c.jsxs(Vt,{className:"border-2 border-accent/20 bg-gradient-to-br from-background to-accent/5",children:[c.jsx(Ro,{children:c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx(Gr,{className:"h-8 w-8 text-accent"}),c.jsx(Ao,{className:"text-2xl",children:"Casos Reais Documentados"})]})}),c.jsxs(Ht,{children:[c.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:"Todas as conversas mostradas são reais e representam casos onde conseguimos recuperar 100% dos valores perdidos pelos nossos clientes."}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-3 h-3 bg-accent rounded-full"}),c.jsx("span",{className:"text-sm font-medium",children:"Conversas verificadas e autênticas"})]})]})]}),c.jsxs(Vt,{className:"border-2 border-primary/20 bg-gradient-to-br from-background to-primary/5",children:[c.jsx(Ro,{children:c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx(nc,{className:"h-8 w-8 text-primary"}),c.jsx(Ao,{className:"text-2xl",children:"Resultados Consistentes"})]})}),c.jsxs(Ht,{children:[c.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:"Nossa experiência em casos de fraude bancária nos permite obter resultados efetivos em diferentes tipos de golpes."}),c.jsxs("div",{className:"grid grid-cols-2 gap-4 mt-4",children:[c.jsxs("div",{className:"text-center p-3 rounded-lg bg-primary/10",children:[c.jsx("div",{className:"text-2xl font-bold text-primary",children:"96%"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Taxa de Sucesso"})]}),c.jsxs("div",{className:"text-center p-3 rounded-lg bg-accent/10",children:[c.jsx("div",{className:"text-2xl font-bold text-accent",children:"R$ 50M+"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Recuperados"})]})]})]})]}),c.jsxs(Vt,{className:"border-2 border-muted/20 bg-gradient-to-br from-background to-muted/5",children:[c.jsx(Ro,{children:c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx(pm,{className:"h-8 w-8 text-foreground"}),c.jsx(Ao,{className:"text-2xl",children:"Clientes Satisfeitos"})]})}),c.jsx(Ht,{children:c.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:"Cada conversa representa uma família que teve sua tranquilidade financeira restaurada através do nosso trabalho especializado."})})]})]})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 mt-16 max-w-5xl mx-auto",children:[c.jsxs("div",{className:"text-center p-6 rounded-xl bg-gradient-to-br from-primary/10 to-transparent border border-primary/20",children:[c.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"2500+"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Casos Resolvidos"})]}),c.jsxs("div",{className:"text-center p-6 rounded-xl bg-gradient-to-br from-accent/10 to-transparent border border-accent/20",children:[c.jsx("div",{className:"text-4xl font-bold text-accent mb-2",children:"R$ 50M+"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Valores Recuperados"})]}),c.jsxs("div",{className:"text-center p-6 rounded-xl bg-gradient-to-br from-primary/10 to-transparent border border-primary/20",children:[c.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:"6 Anos"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"de Experiência"})]}),c.jsxs("div",{className:"text-center p-6 rounded-xl bg-gradient-to-br from-accent/10 to-transparent border border-accent/20",children:[c.jsx("div",{className:"text-4xl font-bold text-accent mb-2",children:"24h"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Atendimento"})]})]})]})]}),Zb=()=>{const e="https://api.whatsapp.com/send/?phone=5511934246615&text=Olá!+Caí+em+um+golpe+e+gostaria+de+recuperar+meu+dinheiro.+Podem+me+ajudar?&type=phone_number&app_absent=0",t=[{icon:Ci,value:"R$ 50M+",label:"Em valores recuperados",gradient:"from-green-500 to-emerald-500",bgGradient:"from-green-500/10 to-emerald-500/10"},{icon:pm,value:"2500+",label:"Clientes atendidos",gradient:"from-blue-500 to-cyan-500",bgGradient:"from-blue-500/10 to-cyan-500/10"},{icon:Zs,value:"96%",label:"Taxa de sucesso",gradient:"from-purple-500 to-pink-500",bgGradient:"from-purple-500/10 to-pink-500/10"},{icon:po,value:"6+ anos",label:"De experiência",gradient:"from-orange-500 to-red-500",bgGradient:"from-orange-500/10 to-red-500/10"}],n=[{icon:po,title:"Consulta Gratuita e Sem Compromisso",description:"Analisamos seu caso gratuitamente e só cobramos quando conseguirmos recuperar seu dinheiro.",gradient:"from-green-500 to-emerald-500"},{icon:Zs,title:"Especialização Exclusiva",description:"Nossa expertise está focada exclusivamente em casos de fraudes bancárias e golpes digitais.",gradient:"from-blue-500 to-cyan-500"},{icon:nc,title:"Resultados Comprovados",description:"Já recuperamos milhões de reais para nossos clientes, além de garantir indenizações por danos morais.",gradient:"from-purple-500 to-pink-500"},{icon:qo,title:"Atendimento Especializado 24h",description:"Equipe especializada disponível 24 horas para atender emergências e casos urgentes.",gradient:"from-orange-500 to-red-500"}];return c.jsxs("section",{className:"py-24 relative overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-green-50 via-blue-50 via-purple-50 to-orange-50"}),c.jsx("div",{className:"absolute top-20 right-10 animate-float opacity-20",children:c.jsx("div",{className:"p-4 rounded-full bg-gradient-to-r from-green-500 to-emerald-500",children:c.jsx(po,{className:"h-12 w-12 text-white"})})}),c.jsx("div",{className:"absolute bottom-32 left-16 animate-float opacity-20",style:{animationDelay:"1.5s"},children:c.jsx("div",{className:"p-4 rounded-full bg-gradient-to-r from-blue-500 to-cyan-500",children:c.jsx(Zs,{className:"h-12 w-12 text-white"})})}),c.jsxs("div",{className:"container relative z-10 mx-auto px-4",children:[c.jsxs("div",{className:"text-center mb-20",children:[c.jsxs(Bt,{className:"mb-8 bg-gradient-to-r from-green-500 to-emerald-500 text-white border-0 px-6 py-3 text-lg shadow-lg",children:[c.jsx(po,{className:"h-5 w-5 mr-2"}),"Veritas Advocacia - OAB/RS 120.955"]}),c.jsxs("h2",{className:"text-4xl md:text-6xl font-bold mb-8 leading-tight",children:[c.jsx("span",{className:"text-foreground",children:"Por que escolher a "}),c.jsx("span",{className:"bg-gradient-to-r from-green-600 via-blue-600 to-purple-600 bg-clip-text text-transparent",children:"VERITAS ADVOCACIA?"})]}),c.jsxs("p",{className:"text-xl md:text-2xl text-muted-foreground mb-12 leading-relaxed max-w-4xl mx-auto",children:["Somos um escritório especializado em",c.jsxs("span",{className:"bg-gradient-to-r from-green-600 to-emerald-600 bg-clip-text text-transparent font-bold",children:[" ","direito do consumidor"," "]}),"e",c.jsxs("span",{className:"bg-gradient-to-r from-blue-600 to-cyan-600 bg-clip-text text-transparent font-bold",children:[" ","fraudes bancárias"," "]}),"atuando desde 2018 na recuperação de valores perdidos"]}),c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-16",children:t.map((r,o)=>{const s=r.icon;return c.jsx(Vt,{className:`text-center p-6 hover:shadow-2xl transition-all duration-500 hover:-translate-y-4 bg-gradient-to-br ${r.bgGradient} backdrop-blur-sm border-2 border-white/20 group`,children:c.jsxs(Ht,{className:"p-0",children:[c.jsx("div",{className:`mx-auto mb-4 p-3 rounded-2xl bg-gradient-to-r ${r.gradient} w-fit group-hover:scale-110 transition-transform duration-300 shadow-lg`,children:c.jsx(s,{className:"h-8 w-8 text-white"})}),c.jsx("div",{className:`text-3xl font-bold bg-gradient-to-r ${r.gradient} bg-clip-text text-transparent mb-2`,children:r.value}),c.jsx("div",{className:"text-sm text-muted-foreground font-medium",children:r.label})]})},o)})})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-16",children:n.map((r,o)=>{const s=r.icon;return c.jsxs(Vt,{className:"group hover:shadow-2xl transition-all duration-500 hover:-translate-y-4 bg-white/80 backdrop-blur-sm border-2 border-white/50 overflow-hidden relative",children:[c.jsx("div",{className:`absolute top-0 right-0 w-24 h-24 bg-gradient-to-bl ${r.gradient} opacity-10 rounded-bl-full`}),c.jsx(Ht,{className:"p-8 relative z-10",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:`p-4 rounded-2xl bg-gradient-to-r ${r.gradient} shadow-lg group-hover:scale-110 transition-transform duration-300 flex-shrink-0`,children:c.jsx(s,{className:"h-8 w-8 text-white"})}),c.jsxs("div",{children:[c.jsx("h4",{className:`font-bold text-xl mb-3 bg-gradient-to-r ${r.gradient} bg-clip-text text-transparent`,children:r.title}),c.jsx("p",{className:"text-muted-foreground leading-relaxed",children:r.description})]})]})})]},o)})}),c.jsx(Vt,{className:"mb-12 bg-gradient-to-br from-white to-gray-50/80 backdrop-blur-sm border-2 border-white/50 shadow-2xl max-w-4xl mx-auto",children:c.jsxs(Ht,{className:"p-8",children:[c.jsx("div",{className:"text-center mb-6",children:c.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c.jsx("div",{className:"p-3 rounded-full bg-gradient-to-r from-blue-500 to-purple-500",children:c.jsx(zd,{className:"h-8 w-8 text-white"})}),c.jsx("span",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"Informações do Escritório"})]})}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"p-2 rounded-full bg-blue-100",children:c.jsx(po,{className:"h-5 w-5 text-blue-600"})}),c.jsxs("div",{children:[c.jsx("span",{className:"font-semibold text-blue-600",children:"OAB/RS:"})," 120.955"]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"p-2 rounded-full bg-green-100",children:c.jsx(zd,{className:"h-5 w-5 text-green-600"})}),c.jsxs("div",{children:[c.jsx("span",{className:"font-semibold text-green-600",children:"CNPJ:"})," 19.238.269/0002-10"]})]})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("div",{className:"p-2 rounded-full bg-purple-100 flex-shrink-0 mt-1",children:c.jsx(Xy,{className:"h-5 w-5 text-purple-600"})}),c.jsxs("div",{children:[c.jsx("span",{className:"font-semibold text-purple-600",children:"Endereço:"}),c.jsx("br",{}),c.jsxs("span",{className:"text-muted-foreground",children:["Palácio do Comércio | Associação Comercial de Porto Alegre",c.jsx("br",{}),"Largo Visc. do Cairú, 17 – Centro Histórico - RS"]})]})]})]})]})}),c.jsxs("div",{className:"text-center",children:[c.jsxs("p",{className:"text-xl text-muted-foreground mb-8 max-w-3xl mx-auto",children:[c.jsx("span",{className:"font-bold text-red-600",children:"⚡ Não perca tempo!"})," Quanto mais rápido agirmos,",c.jsxs("span",{className:"bg-gradient-to-r from-green-600 to-emerald-600 bg-clip-text text-transparent font-bold",children:[" ","maiores as chances de recuperação"," "]}),"do seu dinheiro."]}),c.jsx(Mn,{asChild:!0,size:"lg",className:"bg-gradient-to-r from-green-500 via-emerald-500 to-cyan-500 hover:from-green-600 hover:via-emerald-600 hover:to-cyan-600 text-white font-bold px-12 py-8 text-xl rounded-2xl shadow-2xl transition-all duration-300 hover:scale-105 animate-pulse-slow",children:c.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:[c.jsx(Ni,{className:"h-6 w-6 mr-3"}),"💬 ENTRAR EM CONTATO AGORA"]})}),c.jsxs("p",{className:"text-sm text-muted-foreground mt-6 bg-white/60 backdrop-blur-sm rounded-full px-6 py-2 w-fit mx-auto",children:["📞 ",c.jsx("strong",{children:"(11) 93424-6615"})," • Disponível 24 horas"]})]})]})]})},Jb=()=>{const e="https://api.whatsapp.com/send/?phone=5511934246615&text=Olá!+Caí+em+um+golpe+e+gostaria+de+recuperar+meu+dinheiro.+Podem+me+ajudar?&type=phone_number&app_absent=0",t=[{icon:Bl,title:"Tempo é Crucial",description:"Evidências digitais podem ser perdidas",gradient:"from-red-500 to-orange-500"},{icon:Ci,title:"Valores Podem ser Movidos",description:"Golpistas transferem dinheiro rapidamente",gradient:"from-blue-500 to-cyan-500"},{icon:Xo,title:"Prazo Legal",description:"Alguns recursos têm prazos limitados",gradient:"from-purple-500 to-pink-500"}];return c.jsxs("section",{className:"py-24 relative overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-red-50 via-orange-50 via-yellow-50 to-green-50"}),c.jsx("div",{className:"absolute inset-0 bg-[var(--gradient-hero)]"}),c.jsx("div",{className:"absolute top-10 right-10 animate-float opacity-20",children:c.jsx("div",{className:"p-4 rounded-full bg-gradient-to-r from-red-500 to-orange-500",children:c.jsx(qo,{className:"h-16 w-16 text-white"})})}),c.jsx("div",{className:"absolute bottom-20 left-10 animate-float opacity-20",style:{animationDelay:"1s"},children:c.jsx("div",{className:"p-4 rounded-full bg-gradient-to-r from-blue-500 to-purple-500",children:c.jsx(Id,{className:"h-12 w-12 text-white"})})}),c.jsx("div",{className:"absolute top-1/2 left-1/4 animate-float opacity-10",style:{animationDelay:"2s"},children:c.jsx("div",{className:"p-3 rounded-full bg-gradient-to-r from-green-500 to-cyan-500",children:c.jsx(Gr,{className:"h-10 w-10 text-white"})})}),c.jsx("div",{className:"container relative z-10 mx-auto px-4",children:c.jsx(Vt,{className:"max-w-6xl mx-auto bg-white/95 backdrop-blur-sm border-2 border-white/50 shadow-2xl overflow-hidden",children:c.jsxs(Ht,{className:"p-0",children:[c.jsxs("div",{className:"bg-gradient-to-r from-red-500 via-orange-500 to-yellow-500 p-8 text-center text-white",children:[c.jsxs("div",{className:"flex justify-center gap-4 mb-6",children:[c.jsxs(Bt,{className:"bg-white/20 text-white border-white/30 px-4 py-2 backdrop-blur-sm",children:[c.jsx(Id,{className:"h-5 w-5 mr-2"}),"URGENTE"]}),c.jsxs(Bt,{className:"bg-white/20 text-white border-white/30 px-4 py-2 backdrop-blur-sm",children:[c.jsx(Bl,{className:"h-5 w-5 mr-2"}),"TEMPO LIMITADO"]})]}),c.jsxs("h2",{className:"text-4xl md:text-6xl font-bold mb-6 leading-tight",children:[c.jsx("span",{className:"text-white",children:"Já foi vítima de "}),c.jsx("span",{className:"text-yellow-300 animate-pulse-slow",children:"ALGUM GOLPE?"})]}),c.jsxs("p",{className:"text-xl md:text-2xl mb-8 max-w-4xl mx-auto leading-relaxed opacity-95",children:[c.jsx("strong",{children:"🚨 NÃO SE DESESPERE!"})," A maioria dos casos tem solução legal. Entre em contato conosco ",c.jsx("strong",{children:"IMEDIATAMENTE"})," para avaliarmos suas chances de recuperação."]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:t.map((n,r)=>{const o=n.icon;return c.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 border border-white/20",children:[c.jsx("div",{className:"flex justify-center mb-4",children:c.jsx("div",{className:`p-3 rounded-full bg-gradient-to-r ${n.gradient}`,children:c.jsx(o,{className:"h-8 w-8 text-white"})})}),c.jsx("h4",{className:"font-bold text-lg mb-2",children:n.title}),c.jsx("p",{className:"text-sm opacity-90",children:n.description})]},r)})})]}),c.jsxs("div",{className:"p-8 md:p-12",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mb-12",children:[c.jsxs("div",{className:"text-center p-6 rounded-2xl bg-gradient-to-br from-green-500/10 to-emerald-500/10 border border-green-200",children:[c.jsx("div",{className:"p-4 rounded-full bg-gradient-to-r from-green-500 to-emerald-500 w-fit mx-auto mb-4",children:c.jsx(Bl,{className:"h-10 w-10 text-white"})}),c.jsx("h4",{className:"font-bold text-xl mb-3 bg-gradient-to-r from-green-600 to-emerald-600 bg-clip-text text-transparent",children:"Atendimento Imediato"}),c.jsxs("p",{className:"text-muted-foreground",children:["Resposta em até ",c.jsx("strong",{className:"text-green-600",children:"30 minutos"})," no WhatsApp"]})]}),c.jsxs("div",{className:"text-center p-6 rounded-2xl bg-gradient-to-br from-blue-500/10 to-cyan-500/10 border border-blue-200",children:[c.jsx("div",{className:"p-4 rounded-full bg-gradient-to-r from-blue-500 to-cyan-500 w-fit mx-auto mb-4",children:c.jsx(Gr,{className:"h-10 w-10 text-white"})}),c.jsx("h4",{className:"font-bold text-xl mb-3 bg-gradient-to-r from-blue-600 to-cyan-600 bg-clip-text text-transparent",children:"Consulta 100% Gratuita"}),c.jsxs("p",{className:"text-muted-foreground",children:["Avaliação completa do seu caso ",c.jsx("strong",{className:"text-blue-600",children:"sem custo"})]})]}),c.jsxs("div",{className:"text-center p-6 rounded-2xl bg-gradient-to-br from-purple-500/10 to-pink-500/10 border border-purple-200",children:[c.jsx("div",{className:"p-4 rounded-full bg-gradient-to-r from-purple-500 to-pink-500 w-fit mx-auto mb-4",children:c.jsx(Kr,{className:"h-10 w-10 text-white"})}),c.jsx("h4",{className:"font-bold text-xl mb-3 bg-gradient-to-r from-purple-600 to-pink-600 bg-clip-text text-transparent",children:"96% de Sucesso"}),c.jsxs("p",{className:"text-muted-foreground",children:["Taxa de recuperação ",c.jsx("strong",{className:"text-purple-600",children:"comprovada"})]})]})]}),c.jsxs("div",{className:"rainbow-border p-8 rounded-2xl mb-12 bg-white/80 backdrop-blur-sm text-center",children:[c.jsxs("div",{className:"flex items-center justify-center gap-4 text-3xl md:text-4xl font-bold mb-4",children:[c.jsx("div",{className:"p-3 rounded-full bg-gradient-to-r from-green-500 to-cyan-500 animate-pulse-slow",children:c.jsx(Ni,{className:"h-10 w-10 text-white"})}),c.jsx("span",{className:"bg-gradient-to-r from-green-600 to-cyan-600 bg-clip-text text-transparent",children:"(11) 93424-6615"})]}),c.jsx("p",{className:"text-lg text-muted-foreground mb-4",children:c.jsx("span",{className:"font-bold text-red-600",children:"🚨 LINHA DIRETA DE EMERGÊNCIA"})}),c.jsx("p",{className:"text-muted-foreground",children:"Disponível 24 horas • Atendimento Nacional • Resposta Imediata"})]}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-6 justify-center mb-8",children:[c.jsx(Mn,{asChild:!0,size:"lg",className:"bg-gradient-to-r from-green-500 via-emerald-500 to-cyan-500 hover:from-green-600 hover:via-emerald-600 hover:to-cyan-600 text-white font-bold px-12 py-8 text-xl rounded-2xl shadow-2xl transition-all duration-300 hover:scale-105 animate-pulse-slow",children:c.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:[c.jsx(fm,{className:"h-6 w-6 mr-3"}),"💬 FALAR NO WHATSAPP AGORA"]})}),c.jsx(Mn,{asChild:!0,size:"lg",className:"bg-gradient-to-r from-blue-500 to-purple-500 hover:from-blue-600 hover:to-purple-600 text-white font-bold px-12 py-8 text-xl rounded-2xl shadow-2xl transition-all duration-300 hover:scale-105",children:c.jsxs("a",{href:"tel:+5511934246615",children:[c.jsx(Ni,{className:"h-6 w-6 mr-3"}),"📞 LIGAR AGORA MESMO"]})})]}),c.jsxs("div",{className:"text-center space-y-4",children:[c.jsxs("p",{className:"text-lg font-bold text-red-600 bg-red-50 rounded-full px-8 py-3 w-fit mx-auto border-2 border-red-200",children:["⚡ ",c.jsx("strong",{children:"ATENÇÃO:"})," Cada minuto conta para a recuperação do seu dinheiro!"]}),c.jsxs("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:["Quanto mais rápido agirmos, maiores as chances de recuperação.",c.jsx("strong",{className:"text-foreground",children:" Não deixe para amanhã!"})]})]})]})]})})})]})},e2=()=>c.jsx(Mn,{asChild:!0,className:"fixed bottom-6 right-6 z-50 rounded-full w-14 h-14 bg-green-500 hover:bg-green-600 text-white shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-110 animate-pulse",children:c.jsx("a",{href:"https://api.whatsapp.com/send/?phone=5511934246615&text=Olá!+Caí+em+um+golpe+e+gostaria+de+recuperar+meu+dinheiro.+Podem+me+ajudar?&type=phone_number&app_absent=0",target:"_blank",rel:"noopener noreferrer","aria-label":"Falar no WhatsApp",children:c.jsx(fm,{className:"h-6 w-6"})})}),t2=()=>c.jsxs("div",{className:"min-h-screen",children:[c.jsx(Kb,{}),c.jsx(Xb,{}),c.jsx(qb,{}),c.jsx(Zb,{}),c.jsx(Jb,{}),c.jsx(e2,{})]}),n2=()=>{const e=fg();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),c.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},r2=new sb,o2=()=>c.jsx(lb,{client:r2,children:c.jsxs(zw,{children:[c.jsx(Mx,{}),c.jsx(u1,{}),c.jsx(Wb,{children:c.jsxs(Bb,{children:[c.jsx(eu,{path:"/",element:c.jsx(t2,{})}),c.jsx(eu,{path:"*",element:c.jsx(n2,{})})]})})]})});Lh(document.getElementById("root")).render(c.jsx(o2,{}));